From 4d1ee56c96ce254134b692f0e3b3271c87a42b54 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Wed, 29 Jun 2022 08:21:28 -0500 Subject: [example] fiddling --- examples/03-font-render.lisp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/03-font-render.lisp b/examples/03-font-render.lisp index bf9c893..6f7d1a7 100644 --- a/examples/03-font-render.lisp +++ b/examples/03-font-render.lisp @@ -24,7 +24,7 @@ (when (< 900 (ww::unit-x target)) (setf (ww::unit-x target) -800)) - (incf (ww::unit-x target) 7))) + (incf (ww::unit-x target) 5 ))) (defvar *spin-table* (make-hash-table :synchronized t)) @@ -32,12 +32,13 @@ (ww::on-perframe () (let ((rot (gethash target *spin-table* 0.0))) - (if (< rot (* 20 pi)) + (if (< rot (* 8 pi)) (setf (gethash target *spin-table*) (+ rot 0.88) + (ww::text-color target) (random-text-color) (ww::unit-rotation target) rot) (progn - (setf (ww::unit-rotation target) 0.0) + (setf (ww::unit-rotation target) 0.0) (ww::remove-handler target #'spin) (remhash target *spin-table*)))))) -- cgit v1.2.3