A Pen by Andy Vanee

Developer
Size
1,912 Kb
Views
62,744

How do I make an a pen by andy vanee?

What is a a pen by andy vanee? How do you make a a pen by andy vanee? This script and codes were developed by Andy Vanee on 21 September 2022, Wednesday.

A Pen by Andy Vanee Previews

A Pen by Andy Vanee - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Andy Vanee</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<body> <canvas id="canvas"></canvas>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>

A Pen by Andy Vanee - Script Codes CSS Codes

body { background-color: #111; color: #999;
}

A Pen by Andy Vanee - Script Codes JS Codes

var canvas = document.getElementById('canvas');
var width = canvas.width = window.innerWidth;
var height = canvas.height = window.innerHeight;
var ctx = canvas.getContext('2d');
var boxWidth = 60;
ctx.lineWidth = 4;
function drawText() { var lineWidth = ctx.lineWidth; ctx.lineWidth = 4; ctx.strokeStyle = 'white'; ctx.font = "128px sans-serif"; ctx.strokeText("Hello world", 10, 180); ctx.lineWidth = 1; ctx.strokeStyle = 'black'; ctx.strokeText("Hello world", 10, 180); ctx.lineWidth = lineWidth;
}
var columns = (function(){ return Math.floor(width / boxWidth) })();
var rows = (function(){ return Math.floor(height / boxWidth) })();
function randomColumn() { return Math.floor(Math.random() * columns) * boxWidth;
}
function randomRow() { return Math.floor(Math.random() * rows) * boxWidth;
}
function randomColorValue() { return Math.floor((Math.random() * 255));
}
function randomColor() { return 'rgba('+randomColorValue()+','+randomColorValue()+','+randomColorValue()+',0.4)';
}
function randomRect() { ctx.fillStyle = randomColor(); ctx.strokeStyle = randomColor(); ctx.fillRect(randomColumn(), randomRow(), boxWidth, boxWidth); ctx.strokeRect(randomColumn(), randomRow(), boxWidth, boxWidth); drawText(); requestAnimationFrame(randomRect);
}
randomRect();
A Pen by Andy Vanee - Script Codes
A Pen by Andy Vanee - Script Codes
Home Page Home
Developer Andy Vanee
Username andyvanee
Uploaded September 21, 2022
Rating 3
Size 1,912 Kb
Views 62,744
Do you need developer help for A Pen by Andy Vanee?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Andy Vanee (andyvanee) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!