1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-06 08:08:32 +01:00
dotSCAD/docs/lib2x-px_circle.md
Justin Lin c62b4ef638 rename
2020-03-30 20:13:47 +08:00

612 B

px_circle

Returns points that can be used to draw a pixel-style circle.

Since: 2.0

Parameters

  • radius : The circle radius. The value must be an integer.
  • filled : Default to false. Set it true if you want a filled circle.

Examples

use <pixel/px_circle.scad>;

for(pt = px_circle(10)) {
	translate(pt)
		square(1, center = true);
}

px_circle

use <pixel/px_circle.scad>;

for(pt = px_circle(10, filled = true)) {
	translate(pt)
		linear_extrude(1, scale = 0.5) 
			square(1, center = true);
}

px_circle