Skip to content

Commit

Permalink
chore: update README_PyPI and README
Browse files Browse the repository at this point in the history
  • Loading branch information
tfuxu committed Sep 2, 2023
1 parent c0341a8 commit 3775897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ except Exception as e:
print(f"Couldn't load the requested image. Exception: {e}")

# This is the color palette used in output image
palette = dither_go.create_palette(
RGBA(0, 0, 0, 255),
RGBA(255, 255, 255, 255),
palette = dither_go.create_palette([
[0, 0, 0],
[255, 255, 255],
# You can put here any color you want
)
])

# Create new `Ditherer` object using a constructor
ditherer = dither_go.new_ditherer(palette)
Expand Down
8 changes: 4 additions & 4 deletions README_PyPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ except Exception as e:
print(f"Couldn't load the requested image. Exception: {e}")

# This is the color palette used in output image
palette = dither_go.create_palette(
RGBA(0, 0, 0, 255),
RGBA(255, 255, 255, 255),
palette = dither_go.create_palette([
[0, 0, 0],
[255, 255, 255],
# You can put here any color you want
)
])

# Create new `Ditherer` object using a constructor
ditherer = dither_go.new_ditherer(palette)
Expand Down

0 comments on commit 3775897

Please sign in to comment.