Overview
BLACKICE Portal includes a powerful drawing canvas built with p5.js, offering professional-grade drawing tools, image manipulation, and AI vision capabilities.Drawing canvas
Full-featured drawing with brushes, shapes, and tools
Image import
Import and edit images with filters
AI vision
Ask questions about your canvas content
Export
Download as PNG with transparent background
Vision drawing canvas
Getting started
The drawing canvas is powered by p5.js and includes Puter.js for AI capabilities.The canvas uses p5.js 1.4.2 for rendering and MediaPipe for advanced features.
Tools overview
Available tools:- Brush
- Shapes
- Text
- Eraser
🖌️ Brush Tool (default)Free-form drawing with customizable size and color.Properties:
- Size: 1-20px
- Color: Full RGB spectrum
- Cap style: Round, Butt, Square
- Join style: Round, Miter, Bevel
Brush customization
Color picker:- Click color picker to choose any RGB color
- Live hex value display
- Recent colors saved
- Range: 1-20 pixels
- Real-time preview
- Slider control for precision
Cap styles
Cap styles
Round Cap: Smooth rounded ends (default)Butt Cap: Flat, squared ends at exact endpointSquare Cap: Extended square ends beyond endpoint
Join styles
Join styles
Round Join: Smooth curved corners (default)Miter Join: Sharp pointed cornersBevel Join: Flat beveled corners
Image manipulation
Importing images
How to import:- Click Import image file input
- Select image file (JPG, PNG, GIF, WebP)
- Image loads onto canvas
- Draw over or modify imported image
Imported images are added to the canvas and become part of the drawing. You can draw over them or apply filters.
Image filters
Apply visual filters to your entire canvas. Available filters:- Grayscale
- Invert
Convert canvas to black and white.Use cases:
- Artistic sketches
- Print-ready images
- Reduce visual complexity
- Select filter from dropdown
- Click Apply Filter button
- Filter applies to entire canvas
- Use Undo to revert if needed
AI vision features
Ask about your canvas
Use AI to analyze and answer questions about your drawing.AI vision is powered by Puter.js AI capabilities and can identify objects, text, and compositions in your canvas.
- Draw or import content on canvas
- Type question in “Ask something about the canvas” field
- Click Ask AI button
- AI analyzes canvas and provides answer
- Object detection
- Text recognition (OCR)
- Color analysis
- Composition description
- Style identification
Response display
AI responses appear in the answer panel below the canvas.- Initial state: ”🧠 Ready.”
- Loading: Shows thinking indicator
- Response: Displays AI answer
- Error: Shows error message if query fails
Canvas management
Undo/Redo
Full history tracking with unlimited undo/redo. How it works:- Undo:
Ctrl/Cmd + Z - Redo:
Ctrl/Cmd + Shift + ZorCtrl/Cmd + Y
Clear canvas
Remove all content and start fresh. Clear button:- Removes all drawings
- Clears imported images
- Resets to blank white canvas
- Cannot be undone (clears history)
Clearing the canvas removes all history. Make sure to download your work first!
Download artwork
Export your canvas as a PNG image. Download process:- Format: PNG (Portable Network Graphics)
- Transparency: Preserved
- Resolution: Canvas size (default 800x600)
- Filename:
drawing.png
Zoom controls
Zoom in/out
Zoom into your canvas for detailed work. Zoom buttons:- 🔍 Zoom In: Increase canvas scale
- 🔍 Zoom Out: Decrease canvas scale
- Maintains aspect ratio
- Redraws canvas at new scale
Canvas statistics
Real-time tracking of canvas elements. Status display:- Images: Number of imported images
- Strokes: Brush and eraser strokes
- Text: Text elements added
- Shapes: Rectangles, circles, lines
Enhanced version
Advanced features
Click 🚀 NEW Enhanced Version for additional capabilities: Enhanced features:Layers
Multiple drawing layers with blend modes
Advanced brushes
Spray paint, calligraphy, pattern brushes
Gradient tools
Linear and radial gradients
Selection tools
Select, move, and transform regions
Keyboard shortcuts
Drawing shortcuts
Drawing shortcuts
| Shortcut | Action |
|---|---|
B | Brush tool |
R | Rectangle tool |
C | Circle tool |
L | Line tool |
T | Text tool |
E | Eraser tool |
Ctrl/Cmd + Z | Undo |
Ctrl/Cmd + Y | Redo |
Delete | Clear canvas |
Mobile support
Fully responsive touch interface for mobile drawing. Touch features:- Touch to draw with finger
- Pinch to zoom
- Two-finger pan
- Touch-optimized toolbar
- Mobile color picker
- Prevents accidental zoom
- Touch-friendly button sizes
- Responsive sidebar
- Full-screen canvas option
Performance tips
- Use smaller brush sizes for complex drawings
- Clear history periodically for large projects
- Reduce canvas size if experiencing lag
- Disable filters while drawing for smooth performance
- Export frequently to save your work
Troubleshooting
Canvas not responding
Canvas not responding
Refresh page: Reload if canvas freezesCheck browser: Use Chrome, Firefox, or SafariClear cache: Hard refresh with
Ctrl/Cmd + Shift + RDisable extensions: Ad blockers may interfereAI not working
AI not working
Check internet: AI requires active connectionCanvas content: Ensure canvas has visible contentQuery format: Ask clear, specific questionsTry again: Some queries may need rephrasing
Export issues
Export issues
Browser permissions: Allow downloads in browserFile size: Very large canvases may fail to exportTry different format: Use screenshot if export fails
Next steps
Collaboration
Collaborative drawing and whiteboards
Developer utilities
Integrate canvas in web projects