algorithmic modeling for Rhino
After yesterday's faux shader experiment ( http://www.grasshopper3d.com/photo/image-from-shader ) I thought it might be nice to actually implement infinite cosine wave gradients as a thing which exists. This is an entirely different type of gradient from the 'coloured-grip' one, in that the number of grips is fixed, the grips are two-dimensional and the gradient is expressible as a single equation instead of a bunch of complicated interpolation algorithms.
@Daniel Hambleton, the background here is drawn using a C# 'shader'. Every horizontal pixel is evaluated on every redraw. I do cheat and repeat the one row of pixels as often as necessary, it wouldn't run at 60 fps if I had to draw _every_ pixel in the background that way, but it's still pretty awesome.
Tags:
Comment
Hahaha David! That's a funky solution and I like it. Does not need to be easier. Thanks
@Martin, I was planning to implement this for for the Colour Wheel, but I think I ran out of time or something and it's just random. You can however use Populate 3D to generate random points in a 0~1 cube, then convert the xyz to rgb. But I agree it should be easier to generate such palettes.
Dear David,
excited for what's coming!
Similar topic: is there a simple solution to generate a number of easily distinguishable colours for object preview?
@Daniel, of course, the whole point here is to provide an SDK which makes it easy to do things right and consistently. Putting a sparkle(tm) onto any control is just one line of code now, no matter who you are. If you want to develop one that looks different, that's possible too, just a bit more typing.
Curves with varying thickness like the waves in the animation above is now fairly easy to do because I made sure to not make that code part of the gradient editor, but to put it in an accessible place. I sometimes feel that half of Grasshopper 2.0 is extension methods to make the other half easier to write and maintain.
You are putting graphic quality too high and beautiful. I hope that the developers can customize the components with micro animations or those cool things that you have been doing lately :)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!