Project DNA

Developer
Size
2,925 Kb
Views
16,192

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 Previews

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();
Project DNA - Script Codes
Project DNA - Script Codes
Home Page Home
Developer Nick Walsh
Username nickawalsh
Uploaded November 06, 2022
Rating 3
Size 2,925 Kb
Views 16,192
Do you need developer help for Project DNA?

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!

Nick Walsh (nickawalsh) Script Codes
Name
Animations without d3-timer
Diagram
Swan
Rollins
Random Geometries
Paddle
Travel
Constellations
Mapping - Final
Mapping - 2
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!