Skip to content

Commit

Permalink
Feat: starry night 파티클 추가
Browse files Browse the repository at this point in the history
starry night 파티클을 추가하였음
  • Loading branch information
haeseong123 committed Jun 7, 2023
1 parent 1842926 commit 9c45abe
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
50 changes: 50 additions & 0 deletions src/common/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3517,4 +3517,54 @@ export const confetti = {
}
}
}
};

export const starryNight = {
background: {
color: "#000"
},
detectRetina: false,
fpsLimit: 30,
interactivity: {
detectsOn: "canvas",
events: {
resize: true
}
},
particles: {
color: {
value: "#fff"
},
number: {
density: {
enable: true,
area: 1080
},
limit: 0,
value: 400
},
opacity: {
animation: {
enable: true,
minimumValue: 0.05,
speed: 0.25,
sync: false
},
random: {
enable: true,
minimumValue: 0.05
},
value: 1
},
shape: {
type: "circle"
},
size: {
random: {
enable: true,
minimumValue: 0.5
},
value: 1
}
}
};
2 changes: 2 additions & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const enum ParticleType {
fruitShop = 'Fruit Shop',
fireworks = 'Fireworks',
confetti = 'Confetti',
starryNight = 'Starry Night',
}

export const ALL_PARTICLES = [
Expand All @@ -14,4 +15,5 @@ export const ALL_PARTICLES = [
ParticleType.fruitShop,
ParticleType.fireworks,
ParticleType.confetti,
ParticleType.starryNight,
];
4 changes: 3 additions & 1 deletion src/panel/panel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
import { ParticleType } from '../common/types';
import { amongUs, confetti, fireworks, fruitShop, lights, snow } from '../common/options';
import { amongUs, confetti, fireworks, fruitShop, lights, snow, starryNight } from '../common/options';

/**
* Manages particle coding webview panels
Expand Down Expand Up @@ -118,6 +118,8 @@ export class ParticlePanel {
return JSON.stringify(fireworks);
case ParticleType.confetti:
return JSON.stringify(confetti);
case ParticleType.starryNight:
return JSON.stringify(starryNight);
default:
return JSON.stringify(amongUs);
}
Expand Down

0 comments on commit 9c45abe

Please sign in to comment.