A Next.js application that demonstrates computer graphics programming through a visual GUI interface. Create and manipulate graphics shapes (pixel, line, rectangle, circle, arc, ellipse) with real-time rendering.
- Visual Shape Palette: Select from various graphics shapes (Pixel, Line, Rectangle, Circle, Arc, Ellipse)
- Property Editor: Edit shape attributes in real-time
- Live Rendering: See your graphics rendered instantly on the canvas
- Two-Panel Layout: Editor on the left, renderer on the right
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
- Click on a shape from the palette (left side)
- The shape will be added with default values
- Edit the properties in the Property Editor
- Watch the graphics render in real-time on the right side
- Click on any shape in the "Added Shapes" list to edit it
- Delete shapes by clicking the × button
app/- Next.js app directory with pages and layoutscomponents/- React components (ShapePalette, PropertyEditor, GraphicsCanvas, ShapeList)lib/- Graphics rendering enginetypes/- TypeScript type definitions