tests/testthat/test_interactive_modulate.R

test_that("interactive_modulate",
{
  skip_on_cran()
  iniv <- c(100, 100, 100) # initial value is 100
  names(iniv) <- c("brightness", "saturation", "hue")
  expected <- image_modulate(img, iniv[1], iniv[2], iniv[3])
  expect_equal(expected, interactive_modulate(img))
  expect_equal(iniv, interactive_modulate(img, return_param = TRUE))
  expect_equal(expected, interactive_modulate(img, scale = scale1))
})

Try the magickGUI package in your browser

Any scripts or data that you put into this service are public.

magickGUI documentation built on July 12, 2021, 5:06 p.m.