reb
Class ImageTrapColoringReal
Object
common:Generic
reb:ImageTrapColoring
reb:ImageTrapColoringReal
class
- ImageTrapColoring:ImageTrapColoringReal
Returns the real value of the trapped point which has been weighted by a texture
Returns either the transformed or the untransformed point.The inherited
function CResult() returns a color from a ColorTrap class if one is being used.
Ultra Fractal Source
Toggle UF Source Code Display
class ImageTrapColoringReal(ImageTrapColoring) {
; Returns the real value of the trapped point which has been weighted by a texture <br>
; <p>
; Returns either the transformed or the untransformed point.The inherited
; function CResult() returns a color from a ColorTrap class if one is being used.
public:
import "common.ulb"
; constructor
func ImageTrapColoringReal(Generic pparent)
ImageTrapColoring.ImageTrapColoring(pparent)
endfunc
; use in the Result section of a direct coloring formula.
float func Result(ImageTrapMode ptrapmode)
ImageTrapColoring.Result(ptrapmode)
if (@p_untransformed)
return abs(real(ptrapmode.GetUntransformedPoint(0))) + ptrapmode.GetTexture(0)
else
return abs(real(ptrapmode.GetTransformedPoint(0))) + ptrapmode.GetTexture(0)
endif
endfunc
default:
title = "Real"
int param v_real
caption = "Version (Real)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_real < 100
endparam
bool param p_untransformed
caption = "Use value before transformation"
default = true
hint = "If checked, coloring will be based on the value prior to any trap position transformations."
endparam
}
Method Summary |
float |
Result(ImageTrapMode ptrapmode)
use in the Result section of a direct coloring formula. |
Methods inherited from class Object |
|
ImageTrapColoringReal
public ImageTrapColoringReal(Generic pparent)
- constructor
ImageTrapColoringReal
public ImageTrapColoringReal()
Result
public float Result(ImageTrapMode ptrapmode)
- use in the Result section of a direct coloring formula.
- Overrides:
Result
in class ImageTrapColoring