Page 1 of 1

DreamCatcher Curves

PostPosted: Mon Mar 28, 2016 3:34 pm
by Taron
Just did a cute test javascript to demonstrate my curve concept:
http://www.taron.de/Storage/javascript/ ... Curve.html

It's really my first attempt at a standalone java script of that kind, so that was a fun morning for sure! It's really not that hard to get into, when you know C already. :shrug: :ugeek:

The upcoming Verve version will have a yet some more improved brush#6, which may get these curves under the hood to keep your strokes smooth. Currently I have hooked up a hidden bezier to it, but it's more elaborate than it need to be and leads to other troubles. The above method I just thought up the other day, while I can't imagine that I'd have invented it, hahaha. Anyhow, it works beautifully!
:bounce:
I call them DreamCatcher Curces! :)

Re: DreamCatcher Curves

PostPosted: Mon Mar 28, 2016 5:57 pm
by Knacki
Interesting. You know, drawing lasergraphics is working somehow same way, but automatic. Drawing just one point for a corner is not stopping the laser long enough to create an edge. Due to the fact that it is drawn mechanical and the human eye is slow, it would exactly look like in your drawing. Setting more points in the corner will create a sharp edge finally as the dot is stopping long enough. Not that this really belongs to your very nice example... :)

Re: DreamCatcher Curves

PostPosted: Mon Mar 28, 2016 8:20 pm
by Lemivision
I little bit investigated your javascript code :). You made it through the one morning? Very good man! :rock:

Re: DreamCatcher Curves

PostPosted: Mon Mar 28, 2016 8:31 pm
by Taron
YEAH! That was such a fun rush, too! Kinda fascinating to feel this ...hm...sense of...hm... power?! :ugeek:
Honestly, it's funny to realize that I could just make an interactive sketch with any language of my choosing, so to say. Sounds a little cocky, but that's what it was like!

Of course, I then had to notice that I did something stupid and that it could be done far more efficiently and then I could test it right away in my javascript code, which I now implemented in Verve in return, hehehe. So...it's not just "cool", but super helpful, too! :D
You can see in the code how it works! In Verve it looks even cooler, though, because of my simple vector class. The actual meat of the loops is literally two lines!
(Of course, I could've just written a tiny 2d class in javascript, too, piece of cake. But well...)

Re: DreamCatcher Curves

PostPosted: Tue Mar 29, 2016 8:14 am
by Zeropainter
You are great, the javascript sandbox looks & feels good :ob c:!

Re: DreamCatcher Curves

PostPosted: Tue Mar 29, 2016 9:09 am
by Taron
Weee, thanks Zero! Yeah, I made another version with regular distances between the points and applied it to Verve's brush#6, which now is AWESOME (for fast strokes)! :D
I'm so happy! :)

Still have to work out the slow strokes a little bit more... :roll: