POV-Ray : Newsgroups : povray.general : color_maps : back to basics : Re: color_maps : back to basics Server Time
26 Apr 2024 02:29:05 EDT (-0400)
  Re: color_maps : back to basics  
From: Alain
Date: 17 Apr 2019 14:21:13
Message: <5cb76e99@news.povray.org>
Le 19-04-16 à 22:13, Stephen Klebs a écrit :
> Would like to see gradient contours other than straight, linear curve. Like
> Gaussian, cove or half-round. Or custom function.
> 
> 
> 
> 
Well wave type can give you a start:

ramp_wave : goes 0 to 1 linearly. Default for gradient and onion.

triangle_wave : goes from 0 to 1, then back to 0 linearly. Have a 
periodicity of 2. Default for wood and marble.

sine_wave : use a sinusoidal curve scaled and shifted to the 0..1 range. 
Have a periodicity of 2. Default for wave and ripples.

scallop_wave : Use the absolute value of the sin.

cubic_wave : zero slope at 0 and 1, maximum slope at 0.5 with smooth 
transition.

poly_wave Value : Use Value as an exponent. If value is >1, it start 
with no slope at 0 and increase exponentially toward 1. If Value <1, it 
start sharply and the slope diminishes toward 1 (think of the graph of a 
square or cubic root). Using Value = 0 should return 1 everywhere.


Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.