Documentation ¶
Overview ¶
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsLessThan ¶
func AbsLessThan(z complex128, l float64) bool
Performs |z| < l without the expensive sqrt
func Do ¶
func Do(f func(name string, newFunc FractalNew))
func Register ¶
func Register(name string, newFunc FractalNew)
Types ¶
type DefaultNavigator ¶
type DefaultNavigator struct {
// contains filtered or unexported fields
}
func NewDefaultNavigator ¶
func NewDefaultNavigator(z uint, xoff, yoff int) DefaultNavigator
func (*DefaultNavigator) GetTranslate ¶
func (n *DefaultNavigator) GetTranslate() image.Point
func (*DefaultNavigator) GetZoom ¶
func (n *DefaultNavigator) GetZoom() uint
func (*DefaultNavigator) Transform ¶
func (n *DefaultNavigator) Transform(p image.Point) (float64, float64)
func (*DefaultNavigator) Translate ¶
func (n *DefaultNavigator) Translate(offset image.Point)
func (*DefaultNavigator) Zoom ¶
func (n *DefaultNavigator) Zoom(z uint)
type FractalNew ¶
type Options ¶
func NewOptions ¶
func NewOptions() Options
Directories ¶
Path | Synopsis |
---|---|
TODO REPLACEME: This package implements an example fractal.
|
TODO REPLACEME: This package implements an example fractal. |
Implementes Perlin noise, see: http://freespace.virgin.net/hugo.elias/models/m_perlin.htm
|
Implementes Perlin noise, see: http://freespace.virgin.net/hugo.elias/models/m_perlin.htm |
Click to show internal directories.
Click to hide internal directories.