test filter
This commit is contained in:
parent
1bf8169c57
commit
7562b47f18
|
@ -4,16 +4,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { GiPineTree } from 'react-icons/gi';
|
import { AiOutlineThunderbolt } from 'react-icons/ai';
|
||||||
|
|
||||||
import SnowStorm from '../../ui/snow';
|
import SnowStorm from '../../ui/snow';
|
||||||
|
|
||||||
const videoIds = [
|
const videoIds = [
|
||||||
'bMPpZlok6aU',
|
'mJ2FURhZgy8',
|
||||||
'xcrYffFhTlw',
|
|
||||||
'lCZ5kIFz-h8',
|
|
||||||
'XSpYaEdpKxY',
|
|
||||||
'dTX-6WdiXx8',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const snowStorm = new SnowStorm(window, document);
|
const snowStorm = new SnowStorm(window, document);
|
||||||
|
@ -41,7 +37,7 @@ const ChristmasButton = () => {
|
||||||
: '0 0 9px 6px rgba(189, 0, 0, 0.8)',
|
: '0 0 9px 6px rgba(189, 0, 0, 0.8)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<GiPineTree />
|
<AiOutlineThunderbolt />
|
||||||
{(playing) && (
|
{(playing) && (
|
||||||
<embed
|
<embed
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -79,6 +79,7 @@ class ChunkRGB {
|
||||||
fromImage(img) {
|
fromImage(img) {
|
||||||
this.ready = true;
|
this.ready = true;
|
||||||
const ctx = this.image.getContext('2d');
|
const ctx = this.image.getContext('2d');
|
||||||
|
ctx.filter = 'contrast(1.5) brightness(0.5)';
|
||||||
ctx.drawImage(img, 0, 0);
|
ctx.drawImage(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user