Class: Belle::Image
- Inherits:
-
Pixelart::Image
- Object
- Pixelart::Image
- Belle::Image
- Defined in:
- lib/belles.rb
Constant Summary collapse
- BEFORE_PATCH =
before callback/patch for hats
->(img, ) { ## hack for hats & hair - clip head "overflow" ## quick hack for headwear ## cut-off/clean top overflow hair/head if .name.start_with?( 'beret' ) || .name.start_with?( 'snap_back' ) img[6,4] = 0 img[7,3] = 0 puts " apply beau/belle hat & hair hack before '#{.name}' - clip head pixels..." elsif .name.start_with?( 'beanie' ) || .name.start_with?( 'dreads' ) img[6,4] = 0 puts " apply beau/belle hat & hair hack before '#{.name}' - clip head pixels..." else # do nothing; pass through as-is end }
- NAMES =
['belle', 'belles', 'bella', 'bellas', 'beau', 'beaus', 'beaux']
- DEFAULT_ATTRIBUTES =
['Head 1', 'Shades Large Dark', 'Earring', 'Beanie Yellow', 'Pout 1', 'Turtleneck Rust']
Class Method Summary collapse
Class Method Details
.generate(*names) ⇒ Object
68 69 70 |
# File 'lib/belles.rb', line 68 def self.generate( *names ) generator.generate( *names, before: BEFORE_PATCH ) end |