From a3ae0177e240dac2e5fdc2895e6e496c573de70d Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 22 Jul 2019 15:07:29 +0900 Subject: [PATCH] Improving examples --- examples/{animate.lisp => on-animate.lisp} | 4 +++- examples/{events.lisp => on-mouse.lisp} | 2 ++ examples/{osc.lisp => on-osc.lisp} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename examples/{animate.lisp => on-animate.lisp} (86%) rename examples/{events.lisp => on-mouse.lisp} (87%) rename examples/{osc.lisp => on-osc.lisp} (100%) diff --git a/examples/animate.lisp b/examples/on-animate.lisp similarity index 86% rename from examples/animate.lisp rename to examples/on-animate.lisp index 894eccb..0da2d6a 100644 --- a/examples/animate.lisp +++ b/examples/on-animate.lisp @@ -1,3 +1,5 @@ +; this demo shows how to use the animate event to animate lines into a sine wave. +; (def seg-count 50) ; (def frame-middle @@ -42,7 +44,7 @@ (50 0 (of (frame) :w) 0) - ("rgba(255,255,255,0)" "white" "#72dec2" "red"))))) + ("#ffb545" "#72dec2"))))) ; (defn redraw () diff --git a/examples/events.lisp b/examples/on-mouse.lisp similarity index 87% rename from examples/events.lisp rename to examples/on-mouse.lisp index e154299..8e8293f 100644 --- a/examples/events.lisp +++ b/examples/on-mouse.lisp @@ -1,3 +1,5 @@ +; this demo shows how to use the mouse events to draw make a simple drawing tool. +; (clear) ; (def prev-pos {:x 0 :y 0}) diff --git a/examples/osc.lisp b/examples/on-osc.lisp similarity index 100% rename from examples/osc.lisp rename to examples/on-osc.lisp