| Package | com.kraftner.justlineon.lineservers |
| Class | public class CircularImplosion |
| Inheritance | CircularImplosion LineServer flash.display.Sprite |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | counter : uint = 0
Counts the number of Segments already drawn
| LineServer | |
![]() | initial_angle : Number = 0 | LineServer | |
![]() | initial_length : Number = 0 | LineServer | |
![]() | initial_rel_x : Number = 0 | LineServer | |
![]() | initial_rel_y : Number = 0 | LineServer | |
![]() | initial_x : Number = 0 | LineServer | |
![]() | initial_y : Number = 0 | LineServer | |
![]() | killme : Boolean = false
Stores if this Lineserver is active or not.
| LineServer | |
| newSegment : Segment
[read-only]
This method defines the new Segment.
| CircularImplosion | ||
![]() | prev_Segment : Segment | LineServer | |
| Method | Defined by | ||
|---|---|---|---|
|
CircularImplosion(length:Number, angleDegreeMin:Number, angleDegreeMax:Number, awayStart:Number, awayEnd:Number, awaySub:Number, breakInChance:Number, randomAbort:Number, circleStepWidthDegree:Number, restart:Boolean)
| CircularImplosion | ||
![]() |
addPainter(painter:Painter):void
Adds a Painter to this LineServer
| LineServer | |
![]() |
addPointTransformer(pointTransformer:PointTransformer):void
Adds a PointTransformer to this LineServer
| LineServer | |
![]() |
destroy():void
Contains Code to be executed when this LineServer is destroyed.
| LineServer | |
![]() |
dump():void
Dumps the content of all Painters in this LineServer to a Bitmap.
| LineServer | |
![]() |
step():Boolean
This method is called by the main application to trigger a new Segment.
| LineServer | |
| newSegment | property |
newSegment:Segment [read-only]This method defines the new Segment. It should be overwritten if you subclass your own LineServer.
Implementation protected function get newSegment():Segment
| CircularImplosion | () | constructor |
public function CircularImplosion(length:Number, angleDegreeMin:Number, angleDegreeMax:Number, awayStart:Number, awayEnd:Number, awaySub:Number, breakInChance:Number, randomAbort:Number, circleStepWidthDegree:Number, restart:Boolean)Parameters
length:Number — The average length of each line Segment. The actual length of a Segment varies between 60% and 140% of this value.
|
|
angleDegreeMin:Number — Minimum angle the new Segment turns away from the direction of the previous Segment
|
|
angleDegreeMax:Number — Maximum angle the new Segment turns away from the direction of the previous Segment
|
|
awayStart:Number — Distance at which a new line starts. This only applies in connection with the awaySub parameter.
|
|
awayEnd:Number — Minimum distance the line can be away from the center. This only applies in connection with the breakInChance parameter.
|
|
awaySub:Number — Factor which is substracted from awayStart on each new line. Can be negative as well.
|
|
breakInChance:Number — Chance the line ignores the away parameter and moves on. This Chance is represented by a Number between 0 and 1, 0 beeing impossible to break in. This chance isn't a one time decision but is triggered on each Segment of the line again.
|
|
randomAbort:Number — Chance the line randomly aborts. This Chance is represented by a Number between 0 and 1, 0 meaning the line never randomly aborts and 1 meaning it always aborts. If you set this parameter to 1 the line won't draw at all.
|
|
circleStepWidthDegree:Number — Number of degrees by which the next line starts offset from the previous angle.
|
|
restart:Boolean — true means the Spiral restarts when awayStart is too close to awayEnd to draw a Segment
|
See also