{
  "_id": "6b05cda4b6d08ed7e3d88724",
  "Package": "brouillet",
  "Title": "Reusable Contrast-Curve Colour Gradients",
  "Version": "0.8.0",
  "Authors@R": "person(\"Simon\", \"Bourdareau\", email = \"31312186+SimonBourdareau@users.noreply.github.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Build a colour-gradient specification once and reuse it\nacross plots. A contrast curve, parameterised by centre and\nwidth in relative units, controls where along the data range\nthe colour change is concentrated, so a narrow band of interest\ncan be expanded and the uninformative remainder compressed.\nColours are interpolated in CIE Lab by default. Specifications\nconvert to a value-to-colour function usable by any plotting\nsystem, or to 'ggplot2' fill and colour scales, and support\ntwo-sided out-of-range (clipping) colours shown as bands on the\ncolourbar.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.2",
  "URL": "https://github.com/SimonBourdareau/brouillet",
  "BugReports": "https://github.com/SimonBourdareau/brouillet/issues",
  "Repository": "https://simonbourdareau.r-universe.dev",
  "Date/Publication": "2026-11-24 17:28:14 UTC",
  "RemoteUrl": "https://github.com/SimonBourdareau/brouillet",
  "RemoteRef": "HEAD",
  "RemoteSha": "3790aebcdca8e9b9f547f2953b825a914442a93b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-24 17:43:45 UTC",
    "User": "root"
  },
  "Author": "Simon Bourdareau [aut, cre]",
  "Maintainer": "Simon Bourdareau <31312186+SimonBourdareau@users.noreply.github.com>",
  "_user": "simonbourdareau",
  "_type": "src",
  "_file": "brouillet_0.8.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/48fae53da160ef57b6cf164e751e84198fd578b1be8961d02780201e80ed0383",
  "_filesize": 1297491,
  "_sha256": "48fae53da160ef57b6cf164e751e84198fd578b1be8961d02780201e80ed0383",
  "_expires": "2027-03-04T17:47:14.000Z",
  "_created": "2026-11-24T17:43:45.000Z",
  "_published": "2026-11-24T17:47:16.429Z",
  "_upstream": "https://github.com/SimonBourdareau/brouillet",
  "_status": "success",
  "_maintainer": {
    "name": "Simon Bourdareau",
    "email": "31312186+simonbourdareau@users.noreply.github.com",
    "login": "simonbourdareau",
    "description": "Postdoctoral Associate then Research Scientist at Stowers Institute, Kansas City, Missouri, USA\n",
    "uuid": 31312186
  },
  "_jobs": [
    {
      "job": 138650863463,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14947313550"
    },
    {
      "job": 138650863337,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14949440420"
    },
    {
      "job": 138650863383,
      "time": 118,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14948224257"
    },
    {
      "job": 138650863356,
      "time": 110,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14948558504"
    },
    {
      "job": 138647946887,
      "time": 267,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14947723115"
    },
    {
      "job": 138650863652,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14947393415"
    },
    {
      "job": 138650863430,
      "time": 115,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14948708018"
    },
    {
      "job": 138650863396,
      "time": 91,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14948782927"
    },
    {
      "job": 138650863431,
      "time": 93,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14948583535"
    }
  ],
  "_buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560",
  "_commit": {
    "id": "3790aebcdca8e9b9f547f2953b825a914442a93b",
    "author": "Simon Bourdareau <31312186+SimonBourdareau@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1795541294
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "colorspace",
      "role": "Suggests"
    },
    {
      "package": "farver",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "viridisLite",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "simonbourdareau",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-47",
      "n": 14
    },
    {
      "week": "2026-48",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.3.0",
      "date": "2026-11-18"
    },
    {
      "name": "v0.3.1",
      "date": "2026-11-18"
    },
    {
      "name": "v0.3.2",
      "date": "2026-11-18"
    },
    {
      "name": "v0.4.0",
      "date": "2026-11-18"
    },
    {
      "name": "v0.4.1",
      "date": "2026-11-18"
    },
    {
      "name": "v0.5.0",
      "date": "2026-11-18"
    },
    {
      "name": "v0.5.1",
      "date": "2026-11-18"
    },
    {
      "name": "v0.6.0",
      "date": "2026-11-18"
    },
    {
      "name": "v0.7.0",
      "date": "2026-11-18"
    },
    {
      "name": "v0.7.1",
      "date": "2026-11-19"
    },
    {
      "name": "v0.7.2",
      "date": "2026-11-19"
    },
    {
      "name": "v0.7.3",
      "date": "2026-11-19"
    },
    {
      "name": "v0.7.4",
      "date": "2026-11-19"
    },
    {
      "name": "v0.8.0",
      "date": "2026-11-19"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "simonbourdareau",
      "count": 16,
      "uuid": 31312186
    }
  ],
  "_userbio": {
    "uuid": 31312186,
    "type": "user",
    "name": "Simon Bourdareau",
    "followers": 1,
    "description": "Postdoctoral Associate then Research Scientist at Stowers Institute, Kansas City, Missouri, USA\r\n"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/brouillet"
  },
  "_devurl": "https://github.com/simonbourdareau/brouillet",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/brouillet.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Simon Bourdareau",
      "email": "31312186+simonbourdareau@users.noreply.github.com",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "asColorFun",
    "asScaleColorGradient",
    "asScaleFillGradient",
    "blendingClippingGradient",
    "buildGradient",
    "clippingGradient",
    "colorBlend",
    "colorComplementary",
    "colorSpread",
    "colorUpdate",
    "colorWheel",
    "contrastCurve",
    "customGradientFun",
    "doubleSigmoid",
    "gradient_params",
    "gradientParams",
    "gradientTemplate",
    "hasClipColors",
    "isColor",
    "linearGradient2",
    "linearGradientn",
    "previewGradient",
    "relativeMidpoint",
    "resolveGradient",
    "reverseGradient",
    "sigmoidGradient2",
    "sigmoidGradient3",
    "sigmoidGradientn",
    "steepnessPresets",
    "updateGradient",
    "withColors"
  ],
  "_help": [
    {
      "page": "asColorFun",
      "title": "Turn a gradient specification into a colour function",
      "topics": [
        "asColorFun",
        "print.brouillet_color_fun"
      ]
    },
    {
      "page": "asScaleColorGradient",
      "title": "Use a gradient specification as a ggplot2 colour scale",
      "topics": [
        "asScaleColorGradient"
      ]
    },
    {
      "page": "asScaleFillGradient",
      "title": "Use a gradient specification as a ggplot2 fill scale",
      "topics": [
        "asScaleFillGradient"
      ]
    },
    {
      "page": "blendingClippingGradient",
      "title": "Add blended out-of-range colours to a gradient",
      "topics": [
        "blendingClippingGradient"
      ]
    },
    {
      "page": "buildGradient",
      "title": "Build a gradient data frame from a specification",
      "topics": [
        "buildGradient"
      ]
    },
    {
      "page": "clippingGradient",
      "title": "Add hard out-of-range colours to a gradient",
      "topics": [
        "clippingGradient"
      ]
    },
    {
      "page": "colorBlend",
      "title": "Blend two colours",
      "topics": [
        "colorBlend"
      ]
    },
    {
      "page": "colorComplementary",
      "title": "Find the complementary colour",
      "topics": [
        "colorComplementary"
      ]
    },
    {
      "page": "colorSpread",
      "title": "Generate evenly spread colours around the wheel",
      "topics": [
        "colorSpread"
      ]
    },
    {
      "page": "colorUpdate",
      "title": "Shift a colour towards a second colour",
      "topics": [
        "colorUpdate"
      ]
    },
    {
      "page": "colorWheel",
      "title": "Generate a colour wheel",
      "topics": [
        "colorWheel"
      ]
    },
    {
      "page": "contrastCurve",
      "title": "Monotone contrast curve",
      "topics": [
        "contrastCurve"
      ]
    },
    {
      "page": "customGradientFun",
      "title": "Gradient from a custom mapping function",
      "topics": [
        "customGradientFun"
      ]
    },
    {
      "page": "doubleSigmoid",
      "title": "Double sigmoid curve",
      "topics": [
        "doubleSigmoid"
      ]
    },
    {
      "page": "gradient_params",
      "title": "Create a gradient specification using the pre-0.2 arguments",
      "topics": [
        "gradient_params"
      ]
    },
    {
      "page": "gradientParams",
      "title": "Create a gradient specification",
      "topics": [
        "gradientParams",
        "print.brouillet_gradient_params"
      ]
    },
    {
      "page": "gradientTemplate",
      "title": "Create a gradient template (curve settings without colours)",
      "topics": [
        "gradientTemplate",
        "print.brouillet_gradient_template"
      ]
    },
    {
      "page": "hasClipColors",
      "title": "Does a specification define out-of-range colours?",
      "topics": [
        "hasClipColors"
      ]
    },
    {
      "page": "isColor",
      "title": "Check whether a string is a valid colour",
      "topics": [
        "isColor"
      ]
    },
    {
      "page": "linearGradient2",
      "title": "Two-colour linear gradient",
      "topics": [
        "linearGradient2"
      ]
    },
    {
      "page": "linearGradientn",
      "title": "Multi-colour linear gradient",
      "topics": [
        "linearGradientn"
      ]
    },
    {
      "page": "previewGradient",
      "title": "Preview a gradient",
      "topics": [
        "previewGradient"
      ]
    },
    {
      "page": "relativeMidpoint",
      "title": "Convert a data-unit midpoint to a relative one",
      "topics": [
        "relativeMidpoint"
      ]
    },
    {
      "page": "resolveGradient",
      "title": "Resolve whatever a caller supplied into a specification",
      "topics": [
        "resolveGradient"
      ]
    },
    {
      "page": "reverseGradient",
      "title": "Reverse a gradient specification",
      "topics": [
        "reverseGradient"
      ]
    },
    {
      "page": "sigmoidGradient2",
      "title": "Two-colour contrast gradient",
      "topics": [
        "sigmoidGradient2"
      ]
    },
    {
      "page": "sigmoidGradient3",
      "title": "Three-colour contrast gradient",
      "topics": [
        "sigmoidGradient3"
      ]
    },
    {
      "page": "sigmoidGradientn",
      "title": "Multi-colour contrast gradient",
      "topics": [
        "sigmoidGradientn"
      ]
    },
    {
      "page": "steepnessPresets",
      "title": "Steepness presets",
      "topics": [
        "steepnessPresets"
      ]
    },
    {
      "page": "updateGradient",
      "title": "Modify a gradient specification",
      "topics": [
        "updateGradient"
      ]
    },
    {
      "page": "withColors",
      "title": "Attach colours to a template or replace those of a specification",
      "topics": [
        "withColors"
      ]
    }
  ],
  "_readme": "https://github.com/SimonBourdareau/brouillet/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "brouillet.Rmd",
      "filename": "brouillet.html",
      "title": "brouillet: every function, with examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Specifications",
        "gradientParams()",
        "gradient.mode",
        "Clipping, directly on the specification",
        "space and interpolate",
        "rescale",
        "resolution",
        "gradientTemplate()",
        "withColors()",
        "updateGradient()",
        "reverseGradient()",
        "Shaping the curve",
        "contrastCurve()",
        "doubleSigmoid()",
        "curve.fun",
        "steepnessPresets() and steepness.preset",
        "Clipping",
        "Clip colours on a specification",
        "clippingGradient()",
        "blendingClippingGradient()",
        "Using a specification",
        "asColorFun()",
        "asScaleFillGradient() and asScaleColorGradient()",
        "buildGradient()",
        "previewGradient()",
        "Direct builders",
        "sigmoidGradient2(), sigmoidGradient3(), sigmoidGradientn()",
        "linearGradient2() and linearGradientn()",
        "customGradientFun()",
        "Palettes from other packages",
        "Clip colours derived from the palette",
        "One curve, many palettes",
        "Beyond ggplot2",
        "Colour helpers",
        "isColor()",
        "colorWheel()",
        "colorComplementary()",
        "colorSpread()",
        "colorBlend()",
        "colorUpdate()",
        "Translucent colours",
        "Utilities",
        "resolveGradient()",
        "hasClipColors()",
        "relativeMidpoint()",
        "Running older code",
        "gradient_params()"
      ],
      "created": "2026-11-18 21:44:18",
      "modified": "2026-11-19 19:04:41",
      "commits": 9
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "brouillet",
  "_universes": [
    "simonbourdareau"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.0",
      "date": "2026-11-24T17:46:24.000Z",
      "distro": "resolute",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/7dddcffa34e4bd532afaad25e45c402c94eefc67e2eac0c9ef759c1b8081e3a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.8.0",
      "date": "2026-11-24T17:46:15.000Z",
      "distro": "resolute",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/9bf90bb5ba1378da4a6e6e65721c6dbd354948128e1d02c09b4694f35b95dfd2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.0",
      "date": "2026-11-24T17:45:43.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/739378987d18db15a426a00d57882d5e2d6a9b47d8e6eda4b9fedfbc907a4a20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.8.0",
      "date": "2026-11-24T17:45:42.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/b616224da6e7b303fd4fe6046fa61f566eadd432a3bd1ed1838559681620eb61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.0",
      "date": "2026-11-24T17:46:03.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/e9e380bad60d6d18508cd21751a5d4c7da2fec6278b5d631eba4d7e3d88cf15d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-11-24T17:45:25.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/f4ff9a259cb4fd6b110292837ef99c2aa8a418076ae03ffc4ff234818deb54ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-11-24T17:45:19.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/b0e65319a39f8f413b6c977d26a636329abec8f4d37711b5f8cb4e246d5cd3e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-11-24T17:45:15.000Z",
      "commit": "3790aebcdca8e9b9f547f2953b825a914442a93b",
      "fileid": "https://r2.ropensci.org/84cb44d1963d5d09e0cf9f423f497808ebd77826e94a2422414042649d749b01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/simonbourdareau/actions/runs/45450997560"
    }
  ]
}