Skia Fiddle

Skia Version: da5a67
Options

Optional source image

These globals are now defined:

SkBitmap source;
sk_sp<SkImage> image;
GrBackendTexture backEndTexture; // GPU Only.
Note:
Adding comments with SK_FOLD_START and SK_FOLD_END creates foldable code blocks.
These blocks will be folded by default and are useful for highlighting specific lines of code.
You can also use the keyboard shortcuts Ctrl+S and Ctrl+E in the code editor to set them.
File Bug
Embed

Embed as an image with a backlink:

Embed as custom element (skia.org only):

Output

### `"Hello"`
- boxes (1):
  - l=0.000000, t=-0.300000, r=35.490002, b=16.000000
- lines (1):
  - 0: `"Hello"` (0..5): l=0.000000, t=-0.296875, r=35.490002, b=16.000000
### `"Hello\n"`
- boxes (1):
  - l=0.000000, t=-0.300000, r=35.490002, b=16.000000
- lines (2):
  - 0: `"Hello\n"` (0..6): l=0.000000, t=-0.296875, r=35.490002, b=16.000000
  - 1: `"\n"` (5..6): l=0.000000, t=15.703125, r=0.000000, b=32.000000
### `"Hello\n\n"`
- boxes (3):
  - l=0.000000, t=-0.300000, r=35.490002, b=16.000000
  - l=0.000000, t=15.700000, r=0.000000, b=32.000000
  - l=0.000000, t=15.700000, r=35.490002, b=32.000000
- lines (3):
  - 0: `"Hello"` (0..5): l=0.000000, t=-0.296875, r=35.490002, b=16.000000
  - 1: `"\n"` (6..7): l=0.000000, t=15.703125, r=0.000000, b=32.000000
  - 2: `"\n"` (6..7): l=0.000000, t=31.703125, r=0.000000, b=48.000000
### `"Hello\nworld\n"`
- boxes (3):
  - l=0.000000, t=-0.300000, r=35.490002, b=16.000000
  - l=35.490002, t=-0.300000, r=38.549999, b=16.000000
  - l=0.000000, t=15.700000, r=38.549999, b=32.000000
- lines (3):
  - 0: `"Hello"` (0..5): l=0.000000, t=-0.296875, r=35.490002, b=16.000000
  - 1: `"world\n"` (6..12): l=0.000000, t=15.703125, r=38.549999, b=32.000000
  - 2: `"\n"` (11..12): l=0.000000, t=31.703125, r=0.000000, b=48.000000
### `"Hello\n \n"`
- boxes (3):
  - l=0.000000, t=-0.300000, r=35.490002, b=16.000000
  - l=0.000000, t=15.700000, r=4.450000, b=32.000000
  - l=4.450000, t=15.700000, r=35.490002, b=32.000000
- lines (3):
  - 0: `"Hello"` (0..5): l=0.000000, t=-0.296875, r=35.490002, b=16.000000
  - 1: `" \n"` (6..8): l=0.000000, t=15.703125, r=0.000000, b=32.000000
  - 2: `"\n"` (7..8): l=0.000000, t=31.703125, r=0.000000, b=48.000000

Skia API Documentation

Named Fiddles