![]() |
|
color picker ( continuing...): rotating triangle ? or interpolating X and y ? |
karistouf
Member #5,126
October 2004
![]() |
hi everybody... finally continuing this topic.... {"name":"596641","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/8\/c82856649779aed183b067e5e0f22817.jpg","w":271,"h":274,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/8\/c82856649779aed183b067e5e0f22817"} sure it will be once again something very simple , but ....
"step by step" |
Johan Halmén
Member #1,550
September 2001
|
You got the red vertex angle, right? Add pi*2/3 to it and you get one of them. Add pi*4/3 to get the other one. That's adding 120° and 240°. That's how far the vertices are from each other along the circle, right? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
Matt Smith
Member #783
November 2000
|
Here's a complete working example as an Allegro GUI widget. Not tested since the file date >:) |
karistouf
Member #5,126
October 2004
![]() |
thanks ! this was pi*4/3 i was missing (and the fact once upon a time i learned that a triangle sum of angle should b 360°)! cheers ! and thxs mat for this nice bit of code, I would look at it closely and carefully ! ;-) "step by step" |
Johan Halmén
Member #1,550
September 2001
|
Matt, you probably spoiled the fun! Help is supposed to be given bit by bit (or byte by byte ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
karistouf
Member #5,126
October 2004
![]() |
hum... do not worry about the fun ;-) "step by step" |
|