From 6f9a14e879a89ecda5ce353f80ab228145d71117 Mon Sep 17 00:00:00 2001 From: azurepolarbear Date: Sun, 20 Oct 2024 16:16:51 -0500 Subject: [PATCH] Remove sketch.ts for version release. --- src/sketch.ts | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 src/sketch.ts diff --git a/src/sketch.ts b/src/sketch.ts deleted file mode 100644 index 68a317e..0000000 --- a/src/sketch.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 brittni and the polar bear LLC. - * - * This file is a part of brittni and the polar bear's rainbow waves algorithmic art project, - * which is released under the GNU Affero General Public License, Version 3.0. - * You may not use this file except in compliance with the license. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. See LICENSE or go to - * https://www.gnu.org/licenses/agpl-3.0.en.html for full license details. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU Affero General Public License for more details. - */ - -import P5Lib from 'p5'; - -import { Color, SketchContext } from '@batpb/genart'; - -import '../assets/styles/sketch.css'; - -function sketch(p5: P5Lib): void { - p5.setup = (): void => { - p5.createCanvas(p5.windowWidth, p5.windowHeight, p5.WEBGL); - SketchContext.initialize(p5); - }; - - p5.draw = (): void => { - p5.background(0); - p5.rectMode(p5.CENTER); - - const colorA: Color = new Color(255, 0, 255); - p5.fill(colorA.color); - p5.rect(0, 0, 250, 250); - - const colorB: Color = new Color(0, 0, 255); - p5.fill(colorB.color); - p5.rect(0, 0, 75, 75); - }; - - p5.windowResized = (): void => { - p5.resizeCanvas(p5.windowWidth, p5.windowHeight); - }; -} - -new P5Lib(sketch);