reb
Class ImageTrapColoringAngleToOrigin
Object
common:Generic
reb:ImageTrapColoring
reb:ImageTrapColoringAngleToOrigin
class
- ImageTrapColoring:ImageTrapColoringAngleToOrigin
Returns the angle to origin 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 ImageTrapColoringAngleToOrigin(ImageTrapColoring) {
; Returns the angle to origin 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 ImageTrapColoringAngleToOrgin(Generic pparent)
ImageTrapColoring.ImageTrapColoring(pparent)
endfunc
; use in the Result section of a direct coloring formula.
float func Result(ImageTrapMode ptrapmode)
ImageTrapColoring.Result(ptrapmode)
float d = atan2(ptrapmode.GetUntransformedPoint(0))
if (d < 0)
d = d + #pi*2
endif
return d / (#pi * 2) + ptrapmode.GetTexture(0)
endfunc
default:
title = "Angle to Origin"
int param v_angletoorigin
caption = "Version (Angle To Origin)"
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_angletoorigin < 100
endparam
}
Methods inherited from class Object |
|
ImageTrapColoringAngleToOrigin
public ImageTrapColoringAngleToOrigin()
ImageTrapColoringAngleToOrgin
public void ImageTrapColoringAngleToOrgin(Generic pparent)
- constructor
Result
public float Result(ImageTrapMode ptrapmode)
- use in the Result section of a direct coloring formula.
- Overrides:
Result
in class ImageTrapColoring