1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-24 21:41:33 +02:00
Files
dotSCAD/docs/lib2x-px_sphere.md
Justin Lin c62b4ef638 rename
2020-03-30 20:13:47 +08:00

23 lines
512 B
Markdown

# px_sphere
Returns points that can be used to draw a pixel-style sphere.
**Since:** 2.0
## Parameters
- `radius` : The radius of the sphere. The value must be an integer.
- `filled` : Default to `false`. Set it `true` if you want a filled sphere.
- `thickness`: Default to 1. The thickness when `filled` is `false`. The value must be an integer.
## Examples
use <pixel/px_sphere.scad>;
for(pt = px_sphere(10)) {
translate(pt)
cube(1, center = true);
}
![px_sphere](images/lib2x-px_sphere-1.JPG)