Skip to content

disappearing dashes at low resolution #51

@robx

Description

@robx

After switching from diagrams-cairo, I've noticed some gaps in dashed circles, compare robx/puzzle-draw#32

The first two below are fine, then some dashes start disappearing in a way that seems wrong:

test-dashing-100
test-dashing-80
test-dashing-50
test-dashing-40

These were rendered by the following code:

dia :: Diagram B
dia = bgFrame 0.15 white $
    circle 0.35 # lwG (1/40) # dashingG [1/20, 1/20] 0


sizeSpec :: Double -> SizeSpec V2 Double
sizeSpec w = mkSizeSpec2D (Just w) Nothing

main :: IO ()
main = do
  renderRasterific "test-dashing-100.png" (sizeSpec 100) dia
  renderRasterific "test-dashing-80.png" (sizeSpec 80) dia
  renderRasterific "test-dashing-50.png" (sizeSpec 50) dia
  renderRasterific "test-dashing-40.png" (sizeSpec 40) dia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions