diff options
| author | Jules <jules@asdf.us> | 2016-04-06 10:34:13 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2016-04-06 10:34:13 -0400 |
| commit | 4896b209cabc06c92c444827888ab93323a8f1ee (patch) | |
| tree | d3271de58fe5bb582d79a5728172858502bebf2a /doc/shaderz.txt | |
| parent | 6ea10eb0e9ca7c7785f47424ff7f3d300e691fd1 (diff) | |
mirror brushes
Diffstat (limited to 'doc/shaderz.txt')
| -rw-r--r-- | doc/shaderz.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/shaderz.txt b/doc/shaderz.txt index f1af1d8..e3581aa 100644 --- a/doc/shaderz.txt +++ b/doc/shaderz.txt @@ -270,4 +270,48 @@ if (lex.char=="^") { lex.bg += 1 +>> copy color brushes + +Set to "animate brush", then use option+shift (alt+shift?) to +copy color from the canvas. Brush will have "shape" of +copied color only.. can be a cool effect when used with fg/bg only. + +lex.opacity = lex.bg == colors.black ? 0 : 1 + + +>> distressed texture brush + +Sample use of the "choice" function to get a random color. + +var char = choice(" abcdef ") +lex.bg = +choice("0124") +lex.fg = +choice("01234") +lex.char = char +lex.opacity = char == " " ? 0 : 1 + + +>> foggy terrain brush + +var char = choice(" abcdef ") +lex.bg = choice([14,15]) +lex.fg = choice("367") +lex.char = char +lex.opacity = char == " " ? 0 : 1 + + +>> mirror brush (left-right) + +Animate this on the canvas, then draw: + +if (x > w/2) { + lex.assign( canvas.aa[y][w-x] ) +} + + +>> mirror brush (up-down) + +if (x > h/2) { + lex.assign( canvas.aa[h-y][x] ) +} + |
