I'm trying to create a color variable using a hex value. I've downloaded a hex value from an RSS feed in string format. I'm struggling converting the string hex into a usable color variable. I've tried a few different attempts but struggle inserting the hash symbol infront of the hex value.
I'm trying to recreate polarclock in processing, I've got so it displays the arcs according to the correct time, but I'm trying to make the second arc update in every frame (24 frames a second) instead of just every second (1 frame a second) to create a very smooth animation. I trying to use millis() to do this, but just can't figure it out for the life of me, the specific line of code is on line 42/43.
Any help would be appreciated.
Thanks
Dan
int diameter;
int arc_x;
int arc_y;
float degrees_0;
float degrees_90;
float degrees_180;
float degrees_270;
float degrees_360;
PFont font;
void setup() {
size(640, 480); // Sets the size of the application
frameRate(24); // Sets the frame rate of the appliation
smooth(); // Anti Aliasing on
strokeCap(SQUARE); // Sets the edges of the arc to square instead of round
font = loadFont("BauhausStd-Medium-42.vlw");
textFont(font);
diameter = 200;
arc_x = width / 2; // Arcs aligned to the centre of the screen
arc_y = height / 2; // Arcs aligned to the centre of the screen