summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2016-04-06 10:34:13 -0400
committerJules <jules@asdf.us>2016-04-06 10:34:13 -0400
commit4896b209cabc06c92c444827888ab93323a8f1ee (patch)
treed3271de58fe5bb582d79a5728172858502bebf2a /doc
parent6ea10eb0e9ca7c7785f47424ff7f3d300e691fd1 (diff)
mirror brushes
Diffstat (limited to 'doc')
-rw-r--r--doc/shaderz.txt44
-rw-r--r--doc/shadetut.txt10
2 files changed, 54 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] )
+}
+
diff --git a/doc/shadetut.txt b/doc/shadetut.txt
index e2940e8..681b421 100644
--- a/doc/shadetut.txt
+++ b/doc/shadetut.txt
@@ -103,6 +103,16 @@ choice(array)
deg(radians), rad(degrees)
+BEYOND BASIC COLORS
+===================
+
+Other weird effects are possible if you combine these color functions.
+
+For instance, if you do hue(x+y) you'll get a rainbow. But remember, this is just
+outputting a number between 0 and 15. So you can do hue(x+y) + 1 and get a different
+cycle which does not really have anything to do with the rainbow, but looks cool.
+
+
HOW DRAWING WORKS IN THE ASCII TOOL
===================================