Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Andy!
I am slowly figuring this GitHub thing out and am fairly new to Ruby as well, so let me know if I'm going about this the wrong way. :)
I have added the modify method to icon.rb, which implements most of the options available on the game-icons.net studio. You can now use the color presets, or add a frame, stroke, gradients, shadow, etc. to your icon.
It will also accept all the same color strings as Squib does!
Here are a few test lines you can drop into Squib to see what it does:
svg data: GameIcons.get('spiral-lollipop').modify(preset: 'candy', shape: 'star7').string, layout: 'art', width: 400, height: 400, x: 200, y: 200
svg data: GameIcons.get('chocolate-bar').modify(shape: 'rounded-square', cr: 128, bg_gradient: 'o', bg: 'light_brown', bg2: 'dark_brown', fg_gradient: '/', fg: :chocolate, fg2: :chestnut).string, layout: 'art', width: 400, height: 400, x: 200, y: 600
I hope you find it useful!