leios / Fable.jl

General purpose animations via iterated function systems
MIT License
28 stars 4 forks source link

Hutchinson objects off one pixel and missing lower right value #30

Closed leios closed 1 year ago

leios commented 1 year ago

Screenshot from 2022-12-02 18-22-15

    res = (11,11)
    bounds = [-0.5 0.5; -0.5 0.5]

    color_array = [[1.0, 0, 0, 1],
                   [0.0, 1, 0, 1],
                   [0.0, 0, 1, 1],
                   [1.0, 0, 1, 1]]

    triangle = Fae.define_triangle(; color = color_array,
                                     name = "triangle_test")
    fl = FractalLayer(res; H1 = triangle, ArrayType = ArrayType)

    run!(fl, bounds)

    img = write_image(fl; filename = "check.png")

This is consistent with all objects at low resolutions, but they are only 1 pixel off, so I didn't notice until now.

Not sure if this is a binning issue or what.

leios commented 1 year ago

I am not sure how or when, but this has been fixed.