Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMandelModel ¶
func NewMandelModel() *rv.BasicRenderModel
Types ¶
type MandelModel ¶
type MandelModel rv.BasicRenderModel
type ZoomRenderParameter ¶
type ZoomRenderParameter struct { rv.EmptyParameter Value int Model *MandelModel }
Many applications can simply use OPT_AUTO_ZOOM but since the Mandelbrot algorithm we are using ignores the height and produces a square image, we use a custom parameter to calculate the zoom ourselves, also taking the opportunity to dynamically adjust the Escape parameter.
func NewZoomRP ¶
func NewZoomRP(name string, value int, m *MandelModel) *ZoomRenderParameter
func (*ZoomRenderParameter) GetValueInt ¶
func (e *ZoomRenderParameter) GetValueInt() int
func (*ZoomRenderParameter) SetValueInt ¶
func (e *ZoomRenderParameter) SetValueInt(v int) int
Click to show internal directories.
Click to hide internal directories.