A Pen by Andy Vanee
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 - 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();
Developer | Andy Vanee |
Username | andyvanee |
Uploaded | September 21, 2022 |
Rating | 3 |
Size | 1,912 Kb |
Views | 62,744 |
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!
Name | Size |
Harmoniclock | 2,966 Kb |
Harmoniclock Spiro | 2,799 Kb |
Transform iFrame | 2,544 Kb |
Harmoniclock-16 | 3,278 Kb |
Generic Stock | 6,058 Kb |
Table with Fixed Header | 4,293 Kb |
Some perspective 2 | 4,282 Kb |
Splash-to-header | 5,323 Kb |
Ambient Animation | 4,186 Kb |
Parallax Backgrounds | 4,281 Kb |
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!
Name | Username | Size |
Animation | B3ST1156 | 1,584 Kb |
Gradients | Karpovsystems | 2,394 Kb |
Responsive Advert | James_zedd | 2,354 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Social buttons | Flacu | 2,022 Kb |
Faces SVG animation | ScavengerFrontend | 2,957 Kb |
JQuery Validate checkbox group | Lunaman | 2,466 Kb |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!