Skip to content

Commit

Permalink
Added noise 5
Browse files Browse the repository at this point in the history
  • Loading branch information
raluvy95 committed Jun 2, 2023
1 parent 4e42502 commit 337ff83
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file added assets/palette/frappe/noise_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/palette/latte/noise_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/palette/macchiato/noise_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/palette/mocha/noise_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/palette/oled/noise_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/commands/tools/catppify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function generator(msg: Message, args: string[]) {
client.createMessage(msg.channel.id, `That's not a number lol`)
return
}
const avaliable_noise = ['0', '1', '2', '3', '4']
const avaliable_noise = ['0', '1', '2', '3', '4', '5']
if (!avaliable_noise.includes(noise)) {
client.createMessage(msg.channel.id, `Invalid palette. Use one of the following avaliable noises: ${avaliable_noise.join(", ")}`)
return
Expand Down
2 changes: 1 addition & 1 deletion src/utils/catppify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile } from "fs/promises"

export type Palette = "frappe" | "latte" | "machiatto" | "mocha" | "oled"

export type Noise = "0" | "1" | "2" | "3" | "4"
export type Noise = "0" | "1" | "2" | "3" | "4" | "5"

async function imageProcessing(ctx: CanvasRenderingContext2D, ctxC: CanvasRenderingContext2D, img: Image) {
for (let x = 0; x < img.width; x++) {
Expand Down

0 comments on commit 337ff83

Please sign in to comment.