Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Configuration Options #66

Closed
wants to merge 8 commits into from
Closed

Add Configuration Options #66

wants to merge 8 commits into from

Conversation

razfriman
Copy link

@razfriman razfriman commented Mar 25, 2019

  • Add configuration to customize hyperpower
  • shake option to force shake on or off. null value will fall back to shaking based on the wow mode.
  • colorMode property that changes the colors of the particles
  • colors list of color names for the particles.
  • particleSize
  • minSpawnCount
  • maxSpawnCount
  • maximumParticles
  • Updated README with instructions to customize
  • Fixes add custom configuration to ~/.hyper.js #38

Color Modes:
custom - uses the colors defined on the colors property
cursor - uses the color defined for the cursor
rainbow - uses a pre-made list of rainbow colors

Default Configuration:

{
   shake: null, // null so false can override 'wow' mode
   colorMode: 'custom', // 'cursor', 'custom', 'rainbow'
   colors: ['red', 'green', 'blue'],
   particleSize: 3,
   minSpawnCount: 10,
   maxSpawnCount: 12,
   maximumParticles: 500
};

@raz-canva
Copy link

Bump

@raz-canva raz-canva mentioned this pull request Apr 3, 2019
Copy link

@regisbsb regisbsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@raz-canva
Copy link

Can This be merged?

@tasos31
Copy link

tasos31 commented May 13, 2019

Bump!
I would love to see this merged

@raz-canva
Copy link

raz-canva commented May 13, 2019

Rainbow: https://gph.is/g/ZPNAzrE

hyperPower: {
colorMode: 'rainbow' // 'cursor', 'custom', 'rainbow'
},

@raz-canva
Copy link

Red and green: https://gph.is/g/amLw5yE

hyperPower: {
      colorMode: 'custom', // 'cursor', 'custom', 'rainbow'
      colors: ['#F00', '#0F0']
    },

@raz-canva
Copy link

Please merge this

@zhouhaibing089
Copy link

@raz-canva: Do you mind fork this and publish one version for your own? This seems to be cool, there is no reason that we should wait for this to be merged.

@razfriman
Copy link
Author

razfriman commented Jul 10, 2019

This has been applied to my fork: hyperpower2

https://github.com/razfriman/hyperpower

Add Inside of your .hyper.js:

...
plugins: ['hyperpower2'],
...
hyperPower: {
      colorMode: 'custom', // 'cursor', 'custom', 'rainbow'
      colors: ['red', 'green', 'blue'],
      particleSize: 3,
      minSpawnCount: 15,
      maxSpawnCount: 20
    }

CC: @zhouhaibing089 @Conturbo @tasos31 @regisbsb @origamium @f-santos @DRSDavidSoft @jaydorsey @camilonova

@CosmoMyzrailGorynych
Copy link

⬆️ Note that this fork only works on canary update channel.

@dotconde
Copy link

Awesome, worked for me.

@razfriman razfriman closed this Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add custom configuration to ~/.hyper.js
7 participants