ui: basic map scroller
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package world
|
||||
|
||||
// applyPointStyle configures drawer state for point rendering.
|
||||
func applyPointStyle(drawer PrimitiveDrawer, style RenderStyle) {
|
||||
drawer.SetFillColor(style.PointFill)
|
||||
}
|
||||
|
||||
// applyCircleStyle configures drawer state for circle rendering.
|
||||
func applyCircleStyle(drawer PrimitiveDrawer, style RenderStyle) {
|
||||
drawer.SetFillColor(style.CircleFill)
|
||||
}
|
||||
|
||||
// applyLineStyle configures drawer state for line rendering.
|
||||
func applyLineStyle(drawer PrimitiveDrawer, style RenderStyle) {
|
||||
drawer.SetStrokeColor(style.LineStroke)
|
||||
drawer.SetLineWidth(style.LineWidthPx)
|
||||
drawer.SetDash(style.LineDash...)
|
||||
drawer.SetDashOffset(style.LineDashOffset)
|
||||
}
|
||||
Reference in New Issue
Block a user