WIP components (as built)
This commit is contained in:
71 files changed
+3241
-468
No files matched your search
+2
-2
@@ -8,9 +8,9 @@ import (
|
||||
"mujicaui/internal"
|
||||
)
|
||||
|
||||
// OrbitLoader moves a diamond around a ring of small diamonds, in Spinner's language.
|
||||
// OrbitLoader moves a diamond around a ring of diamonds.
|
||||
func OrbitLoader(c *ui.Context, opts LoaderOptions) *ui.Element {
|
||||
return loaderMark(c, opts, 1, 1600, func(p *ui.Painter, r ui.Rect, t float64, col ui.Color, still bool) {
|
||||
return loaderMark(c, opts, "orbit_loader", 1, 1600, func(p *ui.Painter, r ui.Rect, t float64, col ui.Color, still bool) {
|
||||
cx, cy, rad := r.X+r.W/2, r.Y+r.H/2, r.W*0.36
|
||||
at := func(turn float64) (float32, float32) {
|
||||
a := 2*math.Pi*turn - math.Pi/2
|
||||
|
||||
Reference in new issue
Block a user