davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

Implementing thick lines (and renaming "stroke" to skeleton?) #258

Open davidedc opened 9 years ago

davidedc commented 9 years ago

Lines are problematic - they don't obey scale (or perspective) in regards to their thickness.

Thickness could be set by using strokeSize but

rotate time
strokeSize 7
line

So strokeSize is problematic and scaling lines is problematic. At the same time, changing the current stroke of the primitives to a custom implementation is too difficult (I think).

The good news is that we can fix some lines (the ones we create by using "line" now) by using some proper geometries to draw them (possibly with nice linecap, depending on some lineCap and lineDetail that we might want to set).

So perhaps we should distinguish between "line" + "lineSize" (which we can fix) and "skeleton" + "skeletonSize" (which I don't think we can easily fix)... Thoughts?

rumblesan commented 9 years ago

hah, I'd never noticed that about the end caps.

So I think that making improvements to 'line' and untying it from 'skeleton' would be a good call. I'm not so sold on the name 'skeleton' though. Perhaps 'edge' and 'edgeSize'? or some variation?

davidedc commented 9 years ago

Edge sounds good but I'm worried about burning such a fundamental graphic keyword. Not that I have plans to use it, but still...

how about "wire"? Would people get it?

rumblesan commented 9 years ago

haha, wire sounds pretty good actually. we seem to have this habit of choosing slightly off beat words for everything, so I think that fits :p

davidedc commented 9 years ago

maybe "wires", so it's clearer that you are not drawing a wire?