Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : Display grid option #636

Closed
kult74 opened this issue Feb 7, 2017 · 4 comments
Closed

Feature request : Display grid option #636

kult74 opened this issue Feb 7, 2017 · 4 comments
Assignees

Comments

@kult74
Copy link

kult74 commented Feb 7, 2017

Can we have a checkbox near the pixel grid parameter that actually show the grid. Working with very young kids, this feature is really a must have so they can easily count place pixel just like their drawings.

If checkbox is true AND pixel grid != Disabled
Draw Grid

if checkbox is false AND pixel grid != Disabled
add space (do the actual thing)

What you guys think of that?

Thanks

@juliandescottes
Copy link
Collaborator

I agree that the transparent grid is not the best fit in most situations.
Originally this was just a limitation of the implementation, but I recently changed it so it's fairly easy to use a color and actually display the grid now.

The code responsible for drawing the grid is at https://github.com/juliandescottes/piskel/blob/master/src/js/rendering/frame/FrameRenderer.js#L279-L291 .

Maybe it could be nice to actually have a color picker to allow users to select any color. (otherwise the default color might be hard to use depending on the color palette of the sprite)

@juliandescottes
Copy link
Collaborator

I think this should be a fairly easy issue to get started.

The goal of an initial implementation here would be to:

A follow up for this would be to let the user select the grid color.
And actually we could restrict the grid to be painted (ie remove the current behavior). This way, instead of applying the grid on each of our frame renderers, we could simply have an additional canvas on top of the other ones, that would only display the grid.

@juliandescottes
Copy link
Collaborator

piskel_grid_colors

Work in progress, missing tests (and colors chosen randomly)

juliandescottes added a commit that referenced this issue Jun 10, 2017
juliandescottes added a commit that referenced this issue Jun 10, 2017
juliandescottes added a commit that referenced this issue Jun 10, 2017
…ttings

The name is not ideal, but it's better to have a MiscPreferencesController than a MainApplicationController for this kind of very simple panels.
juliandescottes added a commit that referenced this issue Jun 10, 2017
juliandescottes added a commit that referenced this issue Jun 10, 2017
…ttings

The name is not ideal, but it's better to have a MiscPreferencesController than a MainApplicationController for this kind of very simple panels.
@juliandescottes
Copy link
Collaborator

merged and will be released with v0.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants