We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys. I'm pretty new to processing. Frankly I've never used a graphics software before so a lot of this is new to me.
I'm trying to use the arc() function but I want to make a semi-circle with a dashed or "tick'ed" border. I'm trying to make a digital gauge that is ticked based similar to an AEM digital gauge.
I could make a ton of arc()'s for each tick but that feels like a lot of processing power. Or I could make a colored background image and a single black arc() that works in reverse that covers the colored portion.
The RPM gauge is a good example of what I'm trying to build.
I've currently got a full arc() working as a gauge but I want to add tick marks.
Answers
https://goo.gl/photos/A9yX5fBHncWRturC6
Just to show I'm not totally helpless ;D
Hello, here an example of tick implementation :
ant0ne - this is great! thank you!
is there an easy way to draw the full sections between each tick at a time, instead of scrolling each pixel at a time?
I don't quite understand what you're saying, but this seemed the easiest and fastest way. The other way is to draw each piece of the arc with a gap of 1px between. (more difficult and less smooth).
your welcome ;)
hey ant0ne, so if you consider each "section" of green between each red tick a block. I want to draw an entire block at a time versus scrolling through each tick.
Like drawing discreet blocks instead of continuous tracing...
This is my try using @antOne 's code:
Kf
kfrajer - i just saw this. work took me away from my hobbies for a little while. thank you so much for your help this is exactly what i needed.
instead of calculating the lines every frame, i made a lookup table for a little less strain on the cpu.
thanks!