@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | $surface = new Image(ImageFormat::ARGB32, $size, $size); |
| 12 | 12 | $context = new Context($surface); |
| 13 | -$context->setSourceRgb(1, 1, 1); /* White */ |
|
| 13 | +$context->setSourceRgb(1, 1, 1); /* White */ |
|
| 14 | 14 | $context->paint(); |
| 15 | 15 | |
| 16 | 16 | $context->moveTo($size, 0); |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | $context = new Context($surface); |
| 9 | 9 | |
| 10 | 10 | $context->setSourceRgb(1, 0, 0); |
| 11 | -$context->translate(1,1); |
|
| 12 | -$context->moveTo(0,0); |
|
| 13 | -$context->lineTo(25,50); |
|
| 14 | -$context->lineTo(25,0); |
|
| 15 | -$context->lineTo(50,25); |
|
| 16 | -$context->lineTo(0,25); |
|
| 11 | +$context->translate(1, 1); |
|
| 12 | +$context->moveTo(0, 0); |
|
| 13 | +$context->lineTo(25, 50); |
|
| 14 | +$context->lineTo(25, 0); |
|
| 15 | +$context->lineTo(50, 25); |
|
| 16 | +$context->lineTo(0, 25); |
|
| 17 | 17 | $context->closePath(); |
| 18 | 18 | $context->fill(); |
| 19 | 19 | |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | use Cairo\Surface\ImageFormat; |
| 6 | 6 | |
| 7 | 7 | $dashes = [ |
| 8 | - 50.0, // ink |
|
| 9 | - 10.0, // skip |
|
| 10 | - 10.0, // ink |
|
| 11 | - 10.0, // skip |
|
| 8 | + 50.0, // ink |
|
| 9 | + 10.0, // skip |
|
| 10 | + 10.0, // ink |
|
| 11 | + 10.0, // skip |
|
| 12 | 12 | ]; |
| 13 | 13 | |
| 14 | 14 | $ndash = count($dashes); |