Last active
July 6, 2021 09:59
-
-
Save mattdesl/d3683a9a01c3b1f5bfbd3a45ebcb85ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LCh } from './color.js'; | |
const isScreenprint = style === SCREENPRINT; | |
const L = isScreenprint ? 50 : 92; | |
const C = isScreenprint ? random.range(5, 20) : 5; | |
const h = random.range(0, 360); | |
const background = LCh(L, C, h); | |
const foreground = isScreenprint ? 'white' : 'black'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment