Spaces:
Sleeping
Sleeping
File size: 1,365 Bytes
07c3cdd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /background-create {
<<
/color 0 0 0 0 color-create
/image /null background-image-create
/position <<
/x <<
/percentage false
/value 0
>>
/y <<
/percentage false
/value 0
>>
>>
/repeat /repeat
>>
} def
/background-get-color {
/color get
} def
/background-get-image {
/image get
} def
/background-get-position {
/position get
} def
/background-get-repeat {
/repeat get
} def
/background-show { % => Box Viewport This
dup background-get-color % => Box Viewport This BackgroundColor
color-is-transparent not { % => Box Viewport This
dup background-get-color
color-apply
2 index get-left-padding
3 index get-bottom-padding
4 index get-right-padding
5 index get-left-padding sub
5 index get-top-padding
6 index get-bottom-padding sub
rectfill
} if % => Box Viewport This
dup background-get-position
1 index background-get-repeat % => Box Viewport This Position Repeat
4 index % => Box Viewport This Position Repeat Box
4 index % => Box Viewport This Position Repeat Box Viewport
4 index background-get-image
background-image-show % => Box Viewport This
pop pop pop
} def |