summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2017-03-30 21:45:43 -0400
committerJules <jules@asdf.us>2017-03-30 21:45:43 -0400
commitf70b4a7f6cdfba86b481d80107df875519e6d263 (patch)
tree5a8e121a05585b2879ad1bf7daeedf05b025de0b /doc
parentdbb4236232e79d492f1d5d9ca2fd01dca44e81fe (diff)
purple orange shader
Diffstat (limited to 'doc')
-rw-r--r--doc/shaders/canvas.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/shaders/canvas.txt b/doc/shaders/canvas.txt
index d33f93b..3e036bd 100644
--- a/doc/shaders/canvas.txt
+++ b/doc/shaders/canvas.txt
@@ -223,4 +223,15 @@ if (lex.bg == 0) {
+>> nice purple/orange texture
+
+lex.bg=colors.purple
+lex.fg=colors.orange
+x/=3
+x=floor(x+y/2.1) // <- this is cool number to change
+if (x+10*sin(x)+10*cos(y/(t%100)) < y/3) {
+ lex.char="abcdefghijklmnopqrstuvwxyz"[x%26]
+} else {
+ lex.char="abcdefghijklmnopqrstuvwxyz".toUpperCase()[x%26]
+}