[DEMO] Noise wave explorer
Posted: Wed Mar 26, 2014 8:54 pm
Hello !
At this post http://love2d.org/forums/viewtopic.php?f=5&t=77506, I have replied a small example of displaying color wave computed with the love.math.noise function.
I have coded more and more and then I post this demo in a separate post.
To avoid "key orgy" syndrom I've coded a small GUI (hard-coded and crapy one, but it works), and so the only mapped key is "TAB" to cycle about display mode.
In main window (displaying the color waves) you can right click to have a menu (click on the selected choice with left button), and left click to select a zone to zoom the display.
To have more features, you can use a bar that displays when the mouse is in the top of the window.
This bar looks like :
Whith explanation :
And, finally, here is the Löve file :
Enjoy !
At this post http://love2d.org/forums/viewtopic.php?f=5&t=77506, I have replied a small example of displaying color wave computed with the love.math.noise function.
I have coded more and more and then I post this demo in a separate post.
To avoid "key orgy" syndrom I've coded a small GUI (hard-coded and crapy one, but it works), and so the only mapped key is "TAB" to cycle about display mode.
In main window (displaying the color waves) you can right click to have a menu (click on the selected choice with left button), and left click to select a zone to zoom the display.
To have more features, you can use a bar that displays when the mouse is in the top of the window.
This bar looks like :
Whith explanation :
- octaves selection with left-click : how many noise-octave is used to compute the wave
- The display mode : how I display the wave using the dots. Left-click : cycle (like TAB key) right : select one in the list
- The color scale used to display the wave. Left-click : generate another random scale right-click : manipulate/select color scale
- The number of base colors in the color scale (between 2 and 10) Left click : cycle right : select the number in the list
- Pause the animation of the wave
- Lock the bar
And, finally, here is the Löve file :
Enjoy !