Skip to content

Commit

Permalink
Documented parameter values
Browse files Browse the repository at this point in the history
  • Loading branch information
Claus Wahlers committed Apr 30, 2011
1 parent 795f34f commit 892f082
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/com/powerflasher/as3potrace/POTraceParams.as
Expand Up @@ -18,23 +18,32 @@ package com.powerflasher.as3potrace
this.optTolerance = optTolerance;
}

// Value for threshold filter applied to bitmap before processing
// Color value for threshold filter applied to bitmap before processing.
// Defaults to 0x888888
public var threshold:uint;

// The operator to use when the threshold is applied (ex. "<=", ">", etc)
// The operator to use when the threshold is applied (ex. "<=", ">", etc).
// Defaults to "<="
public var thresholdOperator:String;

// Area of largest path to be ignored
// Area of largest path to be ignored (in pixels)
// Defaults to 2
public var turdSize:int;

// Corner threshold
// Corner threshold, controls the smoothness of the curve.
// The useful range of this parameter is from 0 (polygon) to 1.3333 (no corners).
// Defaults to 1
public var alphaMax:Number;

// Use curve optimization
// Whether to optimize curves or not.
// Replace sequences of Bezier segments by a single segment when possible.
// Defaults to false
public var curveOptimizing:Boolean;

// Curve optimizing tolerance
// Larger values tend to decrease the number of segments, at the expense of less accuracy.
// The useful range is from 0 to infinty, although in practice one would hardly choose values greater than 1 or so.
// Defaults to 0.2
public var optTolerance:Number;
}
}

0 comments on commit 892f082

Please sign in to comment.