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