페이지 정보
작성자 HELLO 작성일25-02-26 00:18 조회39회 댓글0건관련링크
본문
성생활 활력을 높이는 방법 (adsbygoogle = window.adsbygoogle || []).push({});
마카 효능 완벽 정리! 피로 회복, 활력 증진, 호르몬 균형까지 마카의 효과와 섭취 방법을 알아보세요.
const canvas = document.getElementById('particleCanvas');
const ctx = canvas.getContext('2d');
// Set canvas size
function resizeCanvas() {
canvas.width = 600;
canvas.height = 266;
}
resizeCanvas();
// Particle class
class Particle {
constructor() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.size = Math.random() * 3 + 1;
this.speedX = (Math.random() - 0.5) * 1;
this.speedY = (Math.random() - 0.5) * 1;
}
update() {
this.x += this.speedX;
this.y += this.speedY;
if (this.x > canvas.width) this.x = 0;
if (this.x canvas.height) this.y = 0;
if (this.y {
particle.update();
particle.draw();
});
requestAnimationFrame(animate);
}
animate();
1. 마카, 왜 필요할까요?
댓글목록
등록된 댓글이 없습니다.