feat(settings/touchScreen): color circles based on app color
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { useLocalStorage } from "@vueuse/core";
|
import { useLocalStorage } from "@vueuse/core";
|
||||||
import gsap from "gsap";
|
import gsap from "gsap";
|
||||||
|
|
||||||
|
const app = useAppStore();
|
||||||
const store = useSettingsStore();
|
const store = useSettingsStore();
|
||||||
const achievements = useAchievementsStore();
|
const achievements = useAchievementsStore();
|
||||||
const confirmationModal = useConfirmationModal();
|
const confirmationModal = useConfirmationModal();
|
||||||
@@ -344,7 +345,7 @@ onRender((ctx) => {
|
|||||||
// draw circles and rings
|
// draw circles and rings
|
||||||
for (const circle of circles) {
|
for (const circle of circles) {
|
||||||
ctx.globalAlpha = animation.circlesOpacity;
|
ctx.globalAlpha = animation.circlesOpacity;
|
||||||
ctx.fillStyle = "#fb0000";
|
ctx.fillStyle = app.color.hex;
|
||||||
fillCirclePixelated(ctx, circle.x, circle.y, circle.radius);
|
fillCirclePixelated(ctx, circle.x, circle.y, circle.radius);
|
||||||
|
|
||||||
ctx.fillStyle = "#fbfafa";
|
ctx.fillStyle = "#fbfafa";
|
||||||
@@ -353,7 +354,7 @@ onRender((ctx) => {
|
|||||||
|
|
||||||
for (const ring of rings) {
|
for (const ring of rings) {
|
||||||
ctx.globalAlpha = ring.alpha * animation.circlesOpacity;
|
ctx.globalAlpha = ring.alpha * animation.circlesOpacity;
|
||||||
ctx.fillStyle = "#fb0000";
|
ctx.fillStyle = app.color.hex;
|
||||||
strokeCirclePixelated(
|
strokeCirclePixelated(
|
||||||
ctx,
|
ctx,
|
||||||
ring.x,
|
ring.x,
|
||||||
|
|||||||
Reference in New Issue
Block a user