Logo by kr0mat1k - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. March 28, 2024, 07:36:26 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Line of code to deStrobe the colors for the canvas display  (Read 977 times)
0 Members and 1 Guest are viewing this topic.
monstercolorfun
Forums Freshman
**
Posts: 18


« on: November 20, 2017, 04:01:22 PM »

The canvas updates are very rave-style and I get hypervelocity space travel from them. Can you please add a maths function on the end of the pixel render chain, that way is same to a radar phosphorescent display physics so it should be cool. Am I the only one who finds the current radar scope confusing to have on the screen?

Code:
canvasPixel[x,y].rgb.previous = canvasPixel[x,y].rgb.current //keep the more blocky resolution previous pixel

Coroutine to crossfade/transition every pixel in 2/4/20 steps for the next 3 seconds to the new color, using a timer:

function-deStrobe
for (i=0 to i<10)
//var tenStepCrossFadeVariable = (i/10)/10.0;
canvasPixel[x,y].rgb.dreamFxFade = Math.Lerp( canvasPixel[x,y].rgb.previous , canvasPixel[x,y].rgb.current , i/10)


//You could add another line to simulate a fake sparkle:

if i<5

var DiamantinePostProcess = Math.Floor (Random(1/10000.0)/10000.0)

Pixel[x,y] = Pixel[x,y] +DiamantinePostProcess;
« Last Edit: November 23, 2017, 12:30:25 PM by monstercolorfun » Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Dark canvas Mandelbulb3D Gallery bib 0 1173 Last post January 12, 2011, 11:16:26 PM
by bib
How do i put colors on this 3d shadertoy code? 3D Fractal Generation Mrz00m 1 3070 Last post September 04, 2014, 01:08:29 PM
by cKleinhuis
canvas channel Images Showcase (Rate My Fractal) thom 1 889 Last post March 17, 2016, 06:25:21 PM
by cKleinhuis
How to convert MB3D parameter code to people can read like flame code? Mandelbulb 3d fengda2870 4 7173 Last post December 30, 2016, 03:32:42 PM
by lycium
Mandelbrot on canvas Format, Printing & Post Production FractalStefan 14 2827 Last post August 18, 2017, 09:01:41 PM
by Svarvsven

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.222 seconds with 29 queries. (Pretty URLs adds 0.006s, 2q)