Hello, thank you for your excellent work!

I have a question about this project: I've noticed that a png file created with 
Pixie can be greatly reduced in size using a tool like <https://tinypng.com/>. 
For example, the result of the heart example from the documentation can be 
shrunk from 3,68 kB to 1,26 kB. Would you consider adding an alternative 
size-optimized write function to Pixie?
    
    
    import pixie
    
    let image = newImage(200, 200)
    image.fill(rgba(255, 255, 255, 255))
    
    image.fillPath(
      """
        M 20 60
        A 40 40 90 0 1 100 60
        A 40 40 90 0 1 180 60
        Q 180 120 100 180
        Q 20 120 20 60
        z
      """,
      parseHtmlColor("#FC427B").rgba
    )
    
    image.writeFile("heart.png")
    
    
    Run

Reply via email to