Project DNA
How do I make an project dna?
Testing a configurable visualization for displaying the general status of a project / team.. What is a project dna? How do you make a project dna? This script and codes were developed by Nick Walsh on 06 November 2022, Sunday.
Project DNA - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Project DNA</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id='canvas'></canvas> <script src="js/index.js"></script>
</body>
</html>
Project DNA - Script Codes CSS Codes
body { background: #754c8b; display: -webkit-box; display: -ms-flexbox; display: flex; height: 100vh;
}
canvas { margin: auto;
}
Project DNA - Script Codes JS Codes
var canvas = document.getElementById('canvas'), ctx = canvas.getContext('2d');
var count = 3, height = 400, imageData, maxCrest = 150, now, particles = [], then = Date.now(), velocity = -3, width = window.innerWidth;
var bond = { i: 0, interval: 930, size: 70, timer: 0
};
var origin = [width / 1.25, height / 2];
for (i = 0; i < count; i++) { var particle = { amp: 0, crest: maxCrest * Math.random(), cycle: 2 * i / (count), hue: 170 * Math.random(), lightness: 0, radius: 0, velocity: 0.005, x: origin[0] + 50 * Math.random(), y: origin[1] }; particles.push(particle);
}
canvas.height = height;
canvas.width = width;
ctx.globalCompositeOperation = 'screen'
ctx.fillStyle = '#754c8b';
ctx.fillRect(0, 0, width, height);
ctx.lineWidth = '3';
ctx.strokeStyle = 'rgba(255, 255, 255, 0.33)';
function draw() { if (count > 1 && bond.timer > bond.interval) { var start = particles[bond.i]; var end = particles[bond.i + 1]; ctx.beginPath(); ctx.moveTo(start.x - velocity, start.y - velocity); ctx.lineTo(end.x - velocity, end.y - velocity); ctx.stroke(); } if (bond.timer > bond.interval + bond.size) { bond.i++; if (bond.i + 1 == count) { bond.i = 0; } bond.timer = 0; } particles.forEach(function (particle, i) { particle.cycle += particle.velocity; particle.amp = Math.sin(particle.cycle * Math.PI) * particle.crest; particle.radius = (particle.crest - particle.amp) / (maxCrest / 3) + 2; particle.lightness = ((Math.abs(particle.amp) / maxCrest) * 100) * 0.4 + 30; particle.y = origin[1] + particle.amp; ctx.beginPath(); ctx.arc(particle.x, particle.y, particle.radius, 0, Math.PI * 2, true); ctx.fillStyle = 'hsl(' + particle.hue + ', 50%, ' + particle.lightness + '%)'; ctx.shadowBlur = Math.random() * 40; ctx.shadowColor = 'hsl(' + particle.hue + ', 70%, ' + particle.lightness + '%)'; ctx.fill(); if (Math.floor(Math.random() * 200) == 100) { var offset = [ 50 * Math.random() - 25, 50 * Math.random() - 25 ] ctx.beginPath(); ctx.arc(particle.x + offset[0], particle.y + offset[1], particle.radius, 0, Math.PI * 2, true); ctx.fill(); } ctx.shadowBlur = 0; });
}
function loop() { imageData = ctx.getImageData(0, 0, width, height); ctx.putImageData(imageData, velocity, 0); now = Date.now(); bond.timer += now - then; then = now; draw(); requestAnimationFrame(loop);
}
loop();
Developer | Nick Walsh |
Username | nickawalsh |
Uploaded | November 06, 2022 |
Rating | 3 |
Size | 2,925 Kb |
Views | 16,192 |
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 |
Animations without d3-timer | 2,803 Kb |
Diagram | 6,735 Kb |
Swan | 3,872 Kb |
Rollins | 6,753 Kb |
Random Geometries | 2,846 Kb |
Paddle | 3,391 Kb |
Travel | 9,065 Kb |
Constellations | 3,361 Kb |
Mapping - Final | 3,755 Kb |
Mapping - 2 | 2,925 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 |
Basic template | Tomcat | 1,675 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Three js | Paulq | 2,353 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
Hexagons | Ashmind | 4,360 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Jstam.com Home Page | Jstam | 10,558 Kb |
Test | Dviate | 2,668 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!