Standard
Class Standard_Emboss
Object
common:Generic
common:Coloring
common:GradientColoring
Standard:Standard_Emboss
class
- GradientColoring:Standard_Emboss
Object version of Emboss in Standard.ucl.
Coloring algorithm for the Embossed family of fractal types. This coloring
algorithm performs 3D lighting for these fractals.
Uses 3 colors from the gradient, at index values of 0.2, 0.5 and 0.8. With
Color Density set to 1, Transfer Function set to Linear, and Gradient Offset
set to 0, these index values corresponding to the gradient positions 80, 200
and 320.
Originally written by Kerry Mitchell.
Ultra Fractal Source
Toggle UF Source Code Display
class Standard_Emboss(common.ulb:GradientColoring) {
;
; Object version of Emboss in Standard.ucl.
;
; Coloring algorithm for the Embossed family of fractal types. This coloring
; algorithm performs 3D lighting for these fractals.
;
; Uses 3 colors from the gradient, at index values of 0.2, 0.5 and 0.8. With
; Color Density set to 1, Transfer Function set to Linear, and Gradient Offset
; set to 0, these index values corresponding to the gradient positions 80, 200
; and 320.
;
; Originally written by Kerry Mitchell.
;
public:
float func ResultIndex(complex pz)
if (real(pz)<imag(pz))
return 0.2
elseif(imag(pz)<real(pz))
return 0.8
else
return 0.5
endif
endfunc
default:
title = "Emboss"
helpfile = "Uf*.chm"
helptopic = "Html/coloring/standard/emboss.html"
heading
text = "Tip: Combine with one of the Embossed formulas"
endheading
}
Method Summary |
float |
ResultIndex(complex pz)
Produce a resulting color index after a sequence is finished |
Methods inherited from class Object |
|
Standard_Emboss
public Standard_Emboss()
ResultIndex
public float ResultIndex(complex pz)
- Description copied from class:
GradientColoring
- Produce a resulting color index after a sequence is finished
This corresponds to the final: section in a coloring formula.
Once it is called, no further calls to Iterate() should be
made without calling Init() first.
- Overrides:
ResultIndex
in class GradientColoring
- Returns:
- the gradient index (corresponding to #index in a coloring formula)