diff options
Diffstat (limited to 'doc/shaders/canvas.txt')
| -rw-r--r-- | doc/shaders/canvas.txt | 11 |
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] +} |
