Skip to content

Add a button to showcase sdf based sprites #1984

@CommanderStorm

Description

@CommanderStorm

We currently in the frontend have these two views:

ImageImage

I think we should have an button to switch to sdf based sprites and to showcase the effect of halo + size + (maybe) color parameters.

Example of the tiny-sdf library:
https://mapbox.github.io/tiny-sdf/

Implementation wise, I think this should be done like this:

  • make the size of sprites on the preview page adjustable via a slider
  • add the tiny-sdf library
  • add support for displaying sdf sprites via switching between sdf and non-sdf sprites
  • (flex-goal) add the halo parameter to sdfs and maybe too for regular sprites
  • (flex-goal) add the ability to runtime-recolor them

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions