mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-03-14 02:59:42 +01:00
add doc
This commit is contained in:
parent
43f84ba478
commit
9b6c17ace4
BIN
docs/images/lib2-px_circle-1.JPG
Normal file
BIN
docs/images/lib2-px_circle-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
docs/images/lib2-px_circle-2.JPG
Normal file
BIN
docs/images/lib2-px_circle-2.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
32
docs/lib2-px_circle.md
Normal file
32
docs/lib2-px_circle.md
Normal file
@ -0,0 +1,32 @@
|
||||
# px_circle
|
||||
|
||||
Returns points that can be used to draw a pixel-style circle.
|
||||
|
||||
**Since:** 2.0
|
||||
|
||||
## Parameters
|
||||
|
||||
- `radius` : The circle radius.
|
||||
- `filled` : Default to `false`. Set it `true` if you want a filled circle.
|
||||
|
||||
## Examples
|
||||
|
||||
include <pixel/px_circle.scad>;
|
||||
|
||||
for(pt = px_circle(10)) {
|
||||
translate(pt)
|
||||
square(1, center = true);
|
||||
}
|
||||
|
||||

|
||||
|
||||
include <pixel/px_circle.scad>;
|
||||
|
||||
for(pt = px_circle(10, filled = true)) {
|
||||
translate(pt)
|
||||
linear_extrude(1, scale = 0.5)
|
||||
square(1, center = true);
|
||||
}
|
||||
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user