
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
canvas-lang
Advanced tools
npm install -g canvas-lang
canvas-lang your-script.canvas
Create Animated , Colorful ASCII-ART right in your terminals write few line .canvas code & get your desired ascii art !
Every canvas-lang program starts with a canvas block:
canvas {
// Your code here
}
Set the background color for the canvas:
background "color";
Colors can be named colors like "red", "blue", "green", or hex colors like "#FF5733".
Draw a circle:
circle at (x, y) radius r fill "color";
x, y: Coordinates for the center of the circler: Radius of the circlecolor: Fill colorDraw a rectangle:
rect at (x, y) width w height h fill "color";
x, y: Coordinates for the top-left cornerw: Width of the rectangleh: Height of the rectanglecolor: Fill colorDisplay text:
text "Your text" at (x, y) size s color "color";
"Your text": The text to displayx, y: Coordinates for the texts: Text size (affects font selection - larger values use larger fonts)color: Text colorDraw a line:
line from (x1, y1) to (x2, y2) color "color";
x1, y1: Starting coordinatesx2, y2: Ending coordinatescolor: Line colorDisplay animated rainbow text:
rainbow "Your text" at (x, y) duration 100;
"Your text": The text to display with rainbow animationx, y: Coordinates for the textduration: How long to run the animation (in cycles)Define variables for reuse:
var name = value;
Pause execution:
wait 1000; // Waits for 1000ms
Create frame-based animations:
frame {
// Commands for this frame
}
frame {
// Commands for another frame
}
// Or use the animate block
animate {
frame {
// Frame 1
}
frame {
// Frame 2
}
} for 5000; // Animation runs for 5000ms
canvas {
background "navy";
circle at (10, 10) radius 5 fill "yellow";
text "Hello World" at (0, 15) size 10 color "white";
}
canvas {
background "black";
animate {
frame {
circle at (5, 5) radius 3 fill "red";
}
frame {
circle at (10, 5) radius 3 fill "blue";
}
frame {
circle at (15, 5) radius 3 fill "green";
}
} for 5000;
}
canvas {
background "black";
rainbow "Welcome to canvas-lang!" at (5, 5) duration 200;
}
canvas-lang supports the following named colors:
You can also use hex colors like "#FF5733".
Contribute at :
Github/rahulsingh2312/canvas-lang
Report Issues & Bugs & Request a feature at 🚧
Contact at X : https://x.com/rrahulol
FAQs
A simple ASCII graphics language for the terminal
We found that canvas-lang demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.