tangled
alpha
login
or
join now
voigt.tngl.sh
/
firefly-zero-playground
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
2
pipelines
add points to the coordinate system
voigt.tngl.sh
2 months ago
bf9e4d46
e7ec68ee
verified
This commit was signed with the committer's
known signature
.
voigt.tngl.sh
SSH Key Fingerprint:
SHA256:6ShT3iHt6IpCPJtT9Ndevva6c3xzr4RI2LrvKeOXH2U=
+6
1 changed file
expand all
collapse all
unified
split
coordinates
main.go
+6
coordinates/main.go
reviewed
···
38
38
} else {
39
39
firefly.ClearScreen(firefly.ColorNone)
40
40
}
41
41
+
42
42
+
// points in 4 quadrants
43
43
+
firefly.DrawPoint(translatePoint(firefly.Point{X: 10, Y: 10}), firefly.ColorCyan)
44
44
+
firefly.DrawPoint(translatePoint(firefly.Point{X: 10, Y: -10}), firefly.ColorGreen)
45
45
+
firefly.DrawPoint(translatePoint(firefly.Point{X: -10, Y: 10}), firefly.ColorBlue)
46
46
+
firefly.DrawPoint(translatePoint(firefly.Point{X: -10, Y: -10}), firefly.ColorRed)
41
47
}
42
48
43
49
func translatePoint(p firefly.Point) firefly.Point {