README.md in sugar_png-0.4.0 vs README.md in sugar_png-0.4.1
- old
+ new
@@ -1,6 +1,6 @@
-sugar_png [![Build Status](https://secure.travis-ci.org/zed-0xff/sugar_png.png)](http://secure.travis-ci.org/zed-0xff/sugar_png) [![Dependency Status](https://gemnasium.com/zed-0xff/sugar_png.png)](https://gemnasium.com/zed-0xff/sugar_png)
+sugar_png [![Build Status](https://travis-ci.org/zed-0xff/sugar_png.png?branch=master)](https://travis-ci.org/zed-0xff/sugar_png) [![Dependency Status](https://gemnasium.com/zed-0xff/sugar_png.png)](https://gemnasium.com/zed-0xff/sugar_png)
======
Description
-----------
@@ -20,20 +20,20 @@
Examples
--------
### Hello World!
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/hello_world.png" alt="Hello World!" title="Hello World!" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/hello_world.png" alt="Hello World!" title="Hello World!" align="right" />
```ruby
SugarPNG.new do
text "Hello World!"
save "out.png"
end
```
### Explicit image dimensions + bg color
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/explicit_image_dimensions_bg_color.png" alt="Explicit image dimensions + bg color" title="Explicit image dimensions + bg color" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/explicit_image_dimensions_bg_color.png" alt="Explicit image dimensions + bg color" title="Explicit image dimensions + bg color" align="right" />
```ruby
SugarPNG.new do
background 'red' # or :blue, or #ffee00, or :transparent (default)
width 100
height 50
@@ -41,11 +41,11 @@
save "out.png"
end
```
### Japanese text with rainbow borders, zoomed 4x
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/japanese_text_with_rainbow_borders_zoomed_4x.png" alt="Japanese text with rainbow borders, zoomed 4x" title="Japanese text with rainbow borders, zoomed 4x" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/japanese_text_with_rainbow_borders_zoomed_4x.png" alt="Japanese text with rainbow borders, zoomed 4x" title="Japanese text with rainbow borders, zoomed 4x" align="right" />
```ruby
SugarPNG.new do
border 1, :red
border 1, :green
border 1, :blue
@@ -55,11 +55,11 @@
save "out.png"
end
```
### White noise
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/white_noise.png" alt="White noise" title="White noise" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/white_noise.png" alt="White noise" title="White noise" align="right" />
```ruby
SugarPNG.new do
bg :black # shortcut for 'background'
fg :white # ditto
width 100
@@ -69,11 +69,11 @@
save "out.png"
end
```
### Playing with transparency & 16-bit color depth
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/playing_with_transparency_16_bit_color_depth.png" alt="Playing with transparency & 16-bit color depth" title="Playing with transparency & 16-bit color depth" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/playing_with_transparency_16_bit_color_depth.png" alt="Playing with transparency & 16-bit color depth" title="Playing with transparency & 16-bit color depth" align="right" />
```ruby
SugarPNG.new do |img|
img.depth = 16
100.times do |y|
@@ -87,10 +87,10 @@
@data = img.export
end
```
### Pixels can be set using Ranges, Enumerators & Arrays
-<img src="//raw.github.com/zed-0xff/sugar_png/master/samples/readme/pixels_can_be_set_using_ranges_enumerators_arrays.png" alt="Pixels can be set using Ranges, Enumerators & Arrays" title="Pixels can be set using Ranges, Enumerators & Arrays" align="right" />
+<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/pixels_can_be_set_using_ranges_enumerators_arrays.png" alt="Pixels can be set using Ranges, Enumerators & Arrays" title="Pixels can be set using Ranges, Enumerators & Arrays" align="right" />
```ruby
SugarPNG.new do |img|
# Ranges
img[10...50, 10..20] = :blue
# Array + Enumerator