Đèn Godox LA200D Daylight LED Light 230W
            
        
        
        Giá giao động:
                 5,400,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED NanLite Compac 200B
            
        
        
        Giá giao động:
                 12,180,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Amaran P60x Bi-Color LED Panel 3-Light Kit | Nhập Khẩu
            
        
        
        Giá giao động:
                 16,780,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Amaran P60c Bi-Color RGBWW LED Panel 3-Light Kit | Nhập Khẩu
            
        
        
        Giá giao động:
                 23,580,000đ
        
        
            
        
     
 
    
    
        
            
ĐÈN JINBEI DPE 600 II
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN JINBEI MSN 600 TTL
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN STUDIO GODOX DP-600II
            
        
        
        HÀNG MỚI ĐÃ TẠM HẾT
        
        
            
        
     
 
    
    
        
            
ĐÈN LED TOLIFO X-350B LITE 2700K-6500K
            
        
        
        Giá giao động:
                 3,500,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Flash Studio Godox DP600III-V
            
        
        
        Giá giao động:
                 3,890,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Flash Studio Godox DP800III-V
            
        
        
         Giá từ: 
                 5,200,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Nanlite FC-300B Bi-Color
            
        
        
        Giá giao động:
                 10,390,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Nanlite FC-500B
            
        
        
        Giá giao động:
                 13,500,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Godox LA150 Daylight LED Light
            
        
        
        Giá giao động:
                 3,980,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Godox LA150Bi Bi-Color LED Light
            
        
        
        Giá giao động:
                 4,640,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Studio Godox DP600III
            
        
        
        Giá giao động:
                 3,940,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Godox VL200
            
        
        
        Giá giao động:
                 9,790,000đ
        
        
            
        
     
 
    
    
        
            
Bộ đèn Godox 300 SDI-D
            
        
        
        Giá giao động:
                 7,790,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Godox LC500R
            
        
        
        Giá giao động:
                 3,980,000đ
        
        
            
        
     
 
    
    
        
            
Godox SL 100W (GOSL100W)
            
        
        
        Giá giao động:
                 3,980,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Studio Nanlite Compac 100
            
        
        
        Giá giao động:
                 4,780,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Godox LA200 Bi-Color LED Light 230W
            
        
        
        Giá giao động:
                 5,580,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Nanlite Forza 300
            
        
        
        Giá giao động:
                 19,980,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Nanlite Halo 19 LED Ring Light
            
        
        
        Giá giao động:
                 3,580,000đ
        
        
            
        
     
 
    
    
        
            
Đèn LED Godox SL100Bi
            
        
        
        Giá giao động:
                 3,500,000đ
        
        
            
        
     
 
    
    
        
            
Đèn Led Nanlite FS-300B
            
        
        
        Giá giao động:
                 6,850,000đ
        
        
            
        
     
 
    
    
        
            
ĐÈN LED ZHIYUN FIVERAY M40 COMBO
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN LED E.PRO UL-500BI COLOR 2700-6500K
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN NANLITE PAVOTUBE T8-7X 1 KIT
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN STUDIO GODOX DP-1000III V
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
    
    
        
            
ĐÈN STUDIO GODOX DP-400II
            
        
        
        
                
                    Vui lòng gọi
                
        
        
            
        
     
 
             
            
                
            
         
        
        
     
    
    
    
	ĐÈN GIẢ NẮNG SPOTLIGHT 1000W
	ĐÈN STUDIO GODOX QT-400 II
	ĐÈN LED GODOX MS-300
	ĐÈN GODOX QS-1200 II
	ĐÈN GODOX QS-800 II
	ĐÈN GODOX QS-800 III
	ĐÈN STUDIO GODOX DP-1000III
	ĐÈN STUDIO GODOX VL-300
	ĐÈN STUDIO GODOX VL-150
	ĐÈN STUDIO GODOX DP-800III
	ĐÈN STUDIO GODOX QT-1200IIIM
	ĐÈN STUDIO GODOX QT-400IIIM
	ĐÈN STUDIO GODOX SL-60II BI
	ĐÈN STUDIO GODOX DP-800II
	ĐÈN LED GODOX ML-60
	ĐÈN STUDIO GODOX SL-60II D
	ĐÈN STUDIO GODOX QT-600IIIM
	Đèn Flash Studio Godox SK300 II
	Đèn LED Nanlite FS-150
	Đèn studio Godox DP600III V
	Đèn LED Tolifo PL-100B
	ĐÈN LED TOLIFO X-500B PRO
	Đèn dẫn sáng LG-1 LED Light Guide
	Đèn LED Tolifo X-600B Pro
	BÓNG ĐÈN STUDIO GODOX DP-400III V
	Chóa đèn 21cm góc rộng ngàm Bowen
	ĐÈN LED ULANZI VL49 RGB
	ĐÈN LED ULANZI VL120 RGB
	ĐÈN LED ULANZI VL200 BI COLOR
	ĐÈN LED YONGNUO YN300 AIR
	Đầu Đèn Nối Dài Cho AD200 EC-200 Chính Hãng Godox
	ĐÈN LED VIDEO GODOX LF308
	Đèn Led Nanlite FS-60B
	Đèn LED Nanlite FS-150B
	Đèn Godox LED1000Bi II
	Đèn LED Godox SL200W II
	Đèn LED Nanlite PavoTube 30C
	Đèn Led Nanlite Forza 60B II Bi-Color
	Đèn LED Nanlite FS-200B
	ĐÈN LED GODOX SL200 III
	ĐÈN LED RGB GODOX SZ 150R
	Bộ đèn Godox MS300 Studio Flash Kit (MS300II-D)
	Đèn Aputure Nova P300c Combo Kit | Nhập Khẩu
	Đèn LED Studio Nanlite Compac 20
	ZHIYUN CINEPEER CM25
	Đèn LED Studio Nanlite Compac 20 2KIT
	ZHIYUN FIVERAY M40 Combo
	Đèn Flash studio Godox DP400III-V
	CINEPEER CX100
	CINEPEER CF100
	Đèn led Zhiyun MOLUS G60
	CINEPEER CF100 COMBO
	Đèn LED Nanlite FS-200
	Đèn LED Godox quay phim LED1000 C-Y-W
	Bộ Tạo Hiệu Ứng Nghệ Thuật OT1 Max ( 40 độ)
	Bộ Tạo Hiệu Ứng Nghệ Thuật OT1 Max ( 20 độ)
	Đèn led Zhiyun MOLUS G60 COMBO
	Đèn Led Nanlite FS-300
	CINEPEER C100 Combo
	Đèn Led Amaran 300C | Nhập khẩu
	Đèn Led Video Light Sony HVL LBPC | Hàng chính hãng
	Đèn LED Nanlite Forza 500
	Đèn Godox KNOWLED M600Bi Bi-Color LED Monolight
	Đèn LED Studio Nanlite Compac 200
	Đèn Accent B7C RGBWW Bulb | Nhập Khẩu
	Godox SL 60W (GOSL60W)
	Đèn Aputure MC RGBWW Mini LED Light | Nhập Khẩu
	Đèn Amaran COB 60x | Nhập Khẩu
	Đèn Amaran COB 60d | Nhập Khẩu
	Đèn Amaran P60x Bi-Color LED Panel | Nhập Khẩu
	Đèn Led Amaran 100d | Nhập Khẩu
	Amaran 100x Bi-Color | Nhập Khẩu
	Đèn Amaran 200d | Nhập Khẩu
	Đèn Amaran 200x Bi-Color | Nhập Khẩu
	Đèn Amaran P60c Bi-Color RGBWW LED Panel | Nhập Khẩu
	Đèn Aputure LS 60d Daylight LED Fresnel | Nhập Khẩu
	Đèn Aputure LS 60x Bicolor LED Fresnel | Nhập Khẩu
	Bộ Đèn Aputure MC 12 Light Production Kit | Nhập Khẩu
	Đèn LED Aputure Nova P300c | Nhập Khẩu
	Đèn Aputure LS 600x Pro (V-Mount) | Nhập Khẩu
	Đèn Aputure LS 600x Pro (Gold Mount) | Nhập Khẩu
	Đèn Aputure LS 600c Pro (V-Mount) | Nhập Khẩu
	Đèn Aputure LS 600c Pro (Gold Mount) | Nhập Khẩu
	Đèn LED Aputure LS 1200d Pro | Nhập Khẩu
	Đèn LED Nanlite Lumipad 11
	Đèn LED NanLite Compac 24B
	Đèn LED chụp hình Godox - LEDP260C
	Đèn LED Studio Nanlite Compac 40
	Đèn led Nanlite Pavotube II 6C RGBWW
	Đèn LED Nanlite LumiPad 25
	Đèn Flash Godox QS300II
	Đèn Nanlite Halo 16 LED Ring Light
	Đèn LED Godox SL100D
	Đèn Studio Godox DP400III
	Đèn LED Studio Nanlite Compac 68
	Đèn Nanlite Halo 16C LED Ring Light
	Đèn LED cầm tay Iwata Master R MA-01 | Chính hãng
	Đèn LED Nanlite PavoTube 15C
	Godox SL 150W (GOSL150W)
	Đèn LED NanLite Compac 100B
	Đèn LED Godox SL300W II
	Godox SL 200W (GOSL200W)
	Đèn LED Nanlite Forza 200
	Đèn LED NanLite Forza 300B
	ĐÈN LED ULANZI VL61 RGB
	ĐÈN JOBY BEAMO MINI LED
	ĐÈN LED ULANZI CUTE LITE WATER PROOF
	ĐÈN LED NANLITE PAVOTUBE II 30C 2 KIT
	ĐÈN VIDEO LIGHT LED-5080
	ĐÈN LED VIDEOLIGHT ZF-3000
	ĐÈN LED YN 900 II
	Đèn led COLBOR CL60M
	Đèn led COLBOR CL60 Bi-Color
	Đèn led COLBOR CL220 Bi-Color
	Đèn led Zhiyun MOLUS X100 PRO
	Đèn led COLBOR CL60R
	Đèn led Zhiyun MOLUS X100
	Đèn led Zhiyun MOLUS X100 COMBO
    (function () {
        const requestAnimFrame = (function () {
            return window.requestAnimationFrame ||
                window.webkitRequestAnimationFrame ||
                window.mozRequestAnimationFrame ||
                function (callback) {
                    window.setTimeout(callback, 1000 / 60);
                };
        })();
        const hieuUngPhaoHoa = {
            canvas: document.getElementById('hieuUngPhaoHoa__canvas'),
            ctx: null,
            cw: window.innerWidth,
            ch: window.innerHeight,
            fireworks: [],
            particles: [],
            colors: [0, 60, 300], // Mảng các màu
            hue: 0,
            timerTotal: 30, // Giảm thời gian giữa các lần bắn
            timerTick: 0,
            isActive: true, // Biến để kiểm soát trạng thái hoạt động
            init: function () {
                this.ctx = this.canvas.getContext('2d');
                this.canvas.width = this.cw;
                this.canvas.height = this.ch;
                this.loop();
                // Tự động dừng sau 5 giây
                setTimeout(() => {
                    this.isActive = false;
                }, 5000);
            },
            calculateDistance: function (p1x, p1y, p2x, p2y) {
                const xDistance = p1x - p2x;
                const yDistance = p1y - p2y;
                return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
            },
            random: function (min, max) {
                return Math.random() * (max - min) + min;
            },
            createParticles: function (x, y) {
                let particleCount = 30;
                // Chọn màu ngẫu nhiên từ mảng
                this.hue = this.colors[Math.floor(Math.random() * this.colors.length)];
                while (particleCount--) {
                    this.particles.push(new Particle(x, y, this));
                }
            },
            // Main loop
            loop: function () {
                if (!this.isActive && this.fireworks.length === 0 && this.particles.length === 0) {
                    return; // Dừng animation khi hết pháo hoa
                }
                requestAnimFrame(this.loop.bind(this));
                this.hue += 0.5;
                this.ctx.globalCompositeOperation = 'destination-out';
                this.ctx.fillStyle = 'rgba(0, 0, 0, 0.5)';
                this.ctx.fillRect(0, 0, this.cw, this.ch);
                this.ctx.globalCompositeOperation = 'lighter';
                let i = this.fireworks.length;
                while (i--) {
                    this.fireworks[i].draw();
                    this.fireworks[i].update(i);
                }
                i = this.particles.length;
                while (i--) {
                    this.particles[i].draw();
                    this.particles[i].update(i);
                }
                // Tự động bắn pháo hoa nếu đang hoạt động
                if (this.isActive && this.timerTick >= this.timerTotal) {
                    this.fireworks.push(new Firework(
                        this.cw / 2, this.ch,
                        this.random(0, this.cw),
                        this.random(0, this.ch / 2),
                        this
                    ));
                    this.timerTick = 0;
                } else {
                    this.timerTick++;
                }
            }
        };
        // Firework class
        class Firework {
            constructor(sx, sy, tx, ty, main) {
                this.main = main;
                this.x = sx;
                this.y = sy;
                this.sx = sx;
                this.sy = sy;
                this.tx = tx;
                this.ty = ty;
                this.distanceToTarget = main.calculateDistance(sx, sy, tx, ty);
                this.distanceTraveled = 0;
                this.coordinates = [];
                this.coordinateCount = 3;
                while (this.coordinateCount--) {
                    this.coordinates.push([this.x, this.y]);
                }
                this.angle = Math.atan2(ty - sy, tx - sx);
                this.speed = 2;
                this.acceleration = 1.05;
                this.brightness = main.random(50, 70);
                this.targetRadius = 1;
            }
            update(index) {
                this.coordinates.pop();
                this.coordinates.unshift([this.x, this.y]);
                if (this.targetRadius < 8) {
                    this.targetRadius += 0.3;
                } else {
                    this.targetRadius = 1;
                }
                this.speed *= this.acceleration;
                const vx = Math.cos(this.angle) * this.speed;
                const vy = Math.sin(this.angle) * this.speed;
                this.distanceTraveled = this.main.calculateDistance(
                    this.sx, this.sy, this.x + vx, this.y + vy
                );
                if (this.distanceTraveled >= this.distanceToTarget) {
                    this.main.createParticles(this.tx, this.ty);
                    this.main.fireworks.splice(index, 1);
                } else {
                    this.x += vx;
                    this.y += vy;
                }
            }
            draw() {
                this.main.ctx.beginPath();
                this.main.ctx.moveTo(
                    this.coordinates[this.coordinates.length - 1][0],
                    this.coordinates[this.coordinates.length - 1][1]
                );
                this.main.ctx.lineTo(this.x, this.y);
                this.main.ctx.strokeStyle = `hsl(${this.main.hue}, 100%, ${this.brightness}%)`;
                this.main.ctx.stroke();
            }
        }
        // Particle class
        class Particle {
            constructor(x, y, main) {
                this.main = main;
                this.x = x;
                this.y = y;
                this.coordinates = [];
                this.coordinateCount = 5;
                while (this.coordinateCount--) {
                    this.coordinates.push([this.x, this.y]);
                }
                this.angle = main.random(0, Math.PI * 2);
                this.speed = main.random(1, 10);
                this.friction = 0.95;
                this.gravity = 1;
                this.hue = main.random(main.hue - 20, main.hue + 20);
                this.brightness = main.random(50, 80);
                this.alpha = 1;
                this.decay = main.random(0.015, 0.03);
            }
            update(index) {
                this.coordinates.pop();
                this.coordinates.unshift([this.x, this.y]);
                this.speed *= this.friction;
                this.x += Math.cos(this.angle) * this.speed;
                this.y += Math.sin(this.angle) * this.speed + this.gravity;
                this.alpha -= this.decay;
                if (this.alpha <= this.decay) {
                    this.main.particles.splice(index, 1);
                }
            }
            draw() {
                this.main.ctx.beginPath();
                this.main.ctx.moveTo(
                    this.coordinates[this.coordinates.length - 1][0],
                    this.coordinates[this.coordinates.length - 1][1]
                );
                this.main.ctx.lineTo(this.x, this.y);
                this.main.ctx.strokeStyle = `hsla(${this.hue}, 100%, ${this.brightness}%, ${this.alpha})`;
                this.main.ctx.stroke();
            }
        }
        // Khởi chạy khi trang load xong
        //window.addEventListener('load', () => hieuUngPhaoHoa.init());
    })();