I designed this with a very simple app I made using an Android Processing IDE called APDE, which uses the position of my finger on my phone screen to determine the color and position of each ball. Here's the entire code:
int[] value = {50, 20, 150};
int[] pos = {20, 20};
void setup() {
}
void draw() {
fill(value[0], value[1], value[2]);
ellipse(pos[0], pos[1], 50, 50);
}
void mouseDragged() {
for(int i = 0; i < 3; i++) {
value[i] += 5;
if(value[i] > 255){
value[i] = 0;
}
}
pos[0] = mouseX;
pos[1] = mouseY;
}
NOTE: By changing the initial values of 'value' and the rate at which the values change, you can change the colors obtainable.
Congratulations @valentyne! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of posts published
Click on any badge to view your Board of Honor.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last announcement from @steemitboard!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit