Skip to content

Commit

Permalink
Merge pull request #16 from 7PH/dev/pulse
Browse files Browse the repository at this point in the history
Implement pulse effect
  • Loading branch information
7PH authored Nov 29, 2022
2 parents 51252d4 + 8f42099 commit c773d33
Show file tree
Hide file tree
Showing 18 changed files with 152 additions and 61 deletions.
2 changes: 1 addition & 1 deletion dist/powerglitch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions docs-src/src/components/OptionPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,24 @@ const appStore = useAppStore();
:title="'Hue rotate'"
/>
</template>

<div class="font-bold mt-6 mb-2 pl-2">
Pulse
</div>
<ToggleGroupOption
v-model="appStore.powerGlitchOptions.pulse"
:title="'Enabled'"
:getDefaultValue="v => v ? { scale: 2 } : false"
/>
<template v-if="appStore.powerGlitchOptions.pulse">
<NumberOption
v-model="appStore.powerGlitchOptions.pulse.scale"
class="mt-1"
:title="'Scale'"
:min="1.1"
:max="6"
:step="0.1"
/>
</template>
</div>
</template>
Loading

0 comments on commit c773d33

Please sign in to comment.