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

Create "Layers" section #23

Open
bhillier3 opened this issue Jan 29, 2020 · 1 comment
Open

Create "Layers" section #23

bhillier3 opened this issue Jan 29, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@bhillier3
Copy link
Member

Holds Layers for original images, edits, etc.

@bhillier3 bhillier3 added the enhancement New feature or request label Jan 29, 2020
@lbussell lbussell added this to the Sprint 2 milestone Jan 29, 2020
@lbussell lbussell self-assigned this Feb 3, 2020
@lbussell
Copy link
Member

lbussell commented Feb 3, 2020

Notes from meeting about implementation details:

class Sprite 
    layers: Array<SpriteLayer>(5)
    changePixel(coords: ImageCoordinates, layer: number);
    getPixelAt(ImageCoords, layers?: Array<number):
        look at the topmost non-"transparent" pixel in layers
}

type SpriteLayer = Array<Array<number>>

"Transparent" pixels in layers can be a value of -1.

@lbussell lbussell removed their assignment Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants