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

Add new color palette apply tool and a new "Current frame" color palette #909

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

blurymind
Copy link
Contributor

@blurymind blurymind commented Nov 16, 2019

This adds a new tool to the transformsection, that allowsyou to apply the currently selected palette to all the colors of the frame or the colors of all frames..

The pr also adds a new dynamic palette, called "Frame colors". This palette automatically updates itself to show you all the colors of the selected frame and their index numbers. Those index numbers are what the new tool uses for reference

To be clear, this new tool is a Transform type operation for palette swapping. The way it works is
69063093-cb519800-0a13-11ea-93ea-2024189519c1

  • You have a dynamic reference palette (current frame palette), which gets updated every time you add a new color to your frame. Its similar to the other one that shows you ALL the colours.

  • You can then duplicate your reference palette and change any of the colours in its copy. Select that new palette (should be selected when you create it),

  • then using this tool, the colours in it will be compared to the reference palette. A colour replace operation is applied to each of the reference colours, using their indexes - the same operation that the tool @juliandescottes showed uses - but automatically on each colour of the frame.

Holding a modifier key will apply the operation on all frames as swapout all the colours with the ones you have in your new palette - in a single click

@blurymind blurymind changed the title Add color palette apply tool Add new color palette apply tool and a new "Current frame" color palette Nov 16, 2019
@blurymind
Copy link
Contributor Author

For anyone who wants to try all of the new features I am adding in one branch, check out
https://github.com/blurymind/piskel/tree/piskel-plus

@Mrguy004
Copy link

Can add a tool can made color Transparent?

@blurymind
Copy link
Contributor Author

blurymind commented Jan 27, 2020

Possible to do :) seems like a corner case type of use - perhaps a mode for the eraser tool?
Colors in piskel dont seem to have an alpha value in the palette editor

If they did, you could have used this tool to swap them out for alpha 0

I am going to have to add it to my plus branch, since piskel's dev is very busy

Its getting a bit hard to juggle with branches for staling prs for each feature, so I will just add all new stuff to the plus branch

@juliandescottes
Copy link
Collaborator

Can add a tool can made color Transparent?

Not sure if this is what you are looking for, but in the current version there is the "special" paint tool which can be used to change the color of all the pixels that share the same initial color.

image

image

If you use it with the transparent color, it will effectively erase all the pixels of a given color. By default only applies to current frame / current layer, but can be applied to all frames / all layers with ctrl & shift.

@hi21508
Copy link

hi21508 commented Jan 27, 2020

Can add a tool can made color Transparent?

Not sure if this is what you are looking for, but in the current version there is the "special" paint tool which can be used to change the color of all the pixels that share the same initial color.

If you use it with the transparent color, it will effectively erase all the pixels of a given color. By default only applies to current frame / current layer, but can be applied to all frames / all layers with ctrl & shift.

I believe @Mrguy004 is looking for a tool that makes pixels on lower layers partially visible, the way you can see them in the editor. Alternatively, you could add an option on the lighten/darken tool to decrease saturation.

@blurymind
Copy link
Contributor Author

I would suggest to do what @juliandescottes recommends.If the tool doesn't do what you want, raise a separate issue for it. This pr is for colour palette swapping feature and anything outside of that is out of its scope

@blurymind
Copy link
Contributor Author

blurymind commented Feb 3, 2020

To be clear, this new tool is a Transform type operation for palette swapping. The way it works is
69063093-cb519800-0a13-11ea-93ea-2024189519c1

  • You have a dynamic reference palette (current frame palette), which gets updated every time you add a new color to your frame. Its similar to the other one that shows you ALL the colours (current file colours) .

  • You can then duplicate your reference palette and change any of the colours in its copy. Select that new palette (should be selected when you create it),

  • then using this tool, the colours in it will be compared to the reference palette. A colour replace operation is applied to each of the reference colours, using their indexes - the same operation that the tool @juliandescottes showed uses - but automatically on each colour of the frame.

Holding a modifier key will apply the operation on all frames and swapout all the colours with the ones you have in your new palette - in a single click. The modifiers are the same (to all layers/ to all frames)

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

Successfully merging this pull request may close these issues.

4 participants