Skip to content

Commit

Permalink
Merge pull request #112 from jbunke/0.5.1-dev-branch
Browse files Browse the repository at this point in the history
0.5.1 dev branch
  • Loading branch information
jbunke authored Jun 12, 2024
2 parents 868e99a + ea57703 commit 2a507ef
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 18 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# ![Stipple Effect](https://i.imgur.com/sDn5Bz5.gif)
# ![Stipple Effect](https://raw.githubusercontent.com/wiki/jbunke/stipple-effect/assets/logo-anim.gif)

[![Download](https://i.imgur.com/Ry12ica.png)](https://flinkerflitzer.itch.io/stipple-effect)
[![Changelog](https://i.imgur.com/83bOHrf.png)](changelog.md)
[![Roadmap](https://i.imgur.com/7CECQB6.png)](roadmap.md)
[![Download](https://raw.githubusercontent.com/wiki/jbunke/stipple-effect/assets/buttons/download.png)](https://flinkerflitzer.itch.io/stipple-effect)
[![Changelog](https://raw.githubusercontent.com/wiki/jbunke/stipple-effect/assets/buttons/changelog.png)](changelog.md)
[![Roadmap](https://raw.githubusercontent.com/wiki/jbunke/stipple-effect/assets/buttons/roadmap.png)](roadmap.md)

## About
_Stipple Effect_ is an image editor designed for creating and animating pixel art. It is designed to facilitate a variety of workflows and to encourage rapid, iterative creation of pixel art.
_Stipple Effect_ is a pixel art editor that supports animation and scripting. It is designed to facilitate a variety of workflows and to encourage rapid, iterative creation of video game art assets and other types of artwork.

SE was made by a solo indie game developer with the needs and skill sets of other indie devs in mind. It is lightweight and simple to learn and use, yet allows for considerable depth and complexity. SE has a feature-rich scripting API that can be harnessed for the automation of otherwise tedious and repetitive tasks.

Expand Down Expand Up @@ -47,10 +47,5 @@ _Stipple Effect_ supports scripting for three different use cases: **automation*

## External Dependencies
* [Delta Time](https://github.com/jbunke/delta-time) - my lightweight graphics library that handles GUI and execution loop boilerplate
* Core module
* Fonts module
* Menu extension module
* Script module
* Sprite module
* [ANTLR v4](https://github.com/antlr/antlr4) - lexing and parsing library that powers the _DeltaScript_ interpreter
* Animation Encoder - my wrapper for Square's [gifencoder](https://github.com/square/gifencoder) and for [jcodec](https://github.com/jcodec/jcodec) (currently closed-source)
* [Animation Encoder](https://github.com/jbunke/animation-encoder) - my wrapper for Square's [gifencoder](https://github.com/square/gifencoder) and for [jcodec](https://github.com/jcodec/jcodec)
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## **0.5.0** - 2024-06-12
## **0.5.1** - 2024-06-12

### Fixed:
* Bug: Attempting to pick up a selection with pixels off the grid is causing the program to crash


## **0.5.0** - The Performance Update - 2024-06-12

### Added:
* Added tools
Expand Down
5 changes: 5 additions & 0 deletions res/blurbs/__changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{0.5.1} - 2024-06-12

Fixed:
> Bug: Attempting to pick up a selection with pixels off the grid is causing the program to crash

{0.5.0} - The Performance Update - 2024-06-12

Added:
Expand Down
2 changes: 1 addition & 1 deletion res/program
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name:{Stipple Effect}
version:{0.5.0}
version:{0.5.1}
devbuild:{false}
native_standard:{1.2}
palette_standard:{1.0}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import com.jordanbunke.stipple_effect.tools.MoverTool;
import com.jordanbunke.stipple_effect.utility.math.Geometry;

import java.awt.*;

public class SelectionContents {
private static final int X = 0, Y = 1;

Expand Down Expand Up @@ -52,11 +50,16 @@ private static GameImage makeContentFromSelection(

for (int x = 0; x < w; x++) {
for (int y = 0; y < h; y++) {
if (!selection.selected(tl.x + x, tl.y + y))
final int px = tl.x + x, py = tl.y + y;
final boolean outOfBounds =
px < 0 || px >= canvas.getWidth() ||
py < 0 || py >= canvas.getHeight();

if (!selection.selected(px, py) || outOfBounds)
continue;

final Color c = canvas.getColorAt(tl.x + x, tl.y + y);
content.dot(c, x, y);
final int c = canvas.getColorAt(px, py).getRGB();
content.setRGB(x, y, c);
}
}

Expand Down

0 comments on commit 2a507ef

Please sign in to comment.