samples/load_images.rb in squib-0.3.0 vs samples/load_images.rb in squib-0.4.0

- old
+ new

@@ -11,12 +11,12 @@ svg file: 'spanner.svg', x: 50, y: 50, width: 250, height: 250 png file: 'shiny-purse.png', x: 305, y: 50, width: 250, height: 250 #...but PNGs will warn if it's an upscale # We can also limit our rendering to a single object, if the SVG ID is set - # Squib prepends a #-sign if one is not specified svg file: 'spanner.svg', id: '#backdrop', x: 50, y: 350, width: 75, height: 75 + # Squib prepends a #-sign if one is not specified svg file: 'spanner.svg', id: 'backdrop', x: 50, y: 450, width: 125, height: 125 # WARNING! If you choose to use the SVG ID, the x-y coordinates are still # relative to the SVG page. See this example in an SVG editor svg file: 'offset.svg', id: 'thing', x: 0, y: 0, width: 600, height: 600 @@ -36,14 +36,14 @@ # This is particularly useful for switching directly over to black-and-white for printing # Or, if you want the same image to be used but with different colors/gradients svg mask: '#00ff00', file: 'glass-heart.svg', x: 500, y: 600, width: 200, height: 200 - svg mask: '(500,1000)(500,800) #333@0.0 #ccc@1.0 ', + svg mask: '(0,0)(0,500) #ccc@0.0 #333@1.0', file: 'glass-heart.svg', x: 500, y: 800, width: 200, height: 200 - # Masks are based on transparency, so this is just a square + # Masks are based on the alpha channel, so this is just a magenta square png mask: :magenta, file: 'shiny-purse.png', x: 650, y: 950 save prefix: 'load_images_', format: :png end