👮 string literals should be single-quoted
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ Squib::Deck.new(cards: 2, config: 'backend-config.yml') do
|
||||
|
||||
# These are all supported by the SVG backend
|
||||
background color: :gray
|
||||
text str: "Hello, world!", y: 500, width: 825, font: 'Sans bold 72', align: :center
|
||||
text str: 'Hello, world!', y: 500, width: 825, font: 'Sans bold 72', align: :center
|
||||
rect x: 38, y: 38, width: 750, height: 1050, x_radius: 38, y_radius: 38
|
||||
circle x: 100, y: 400, radius: 25
|
||||
triangle x1: 100, y1: 425, x2: 125, y2: 475, x3: 75, y3: 475
|
||||
|
||||
@@ -6,7 +6,7 @@ Squib::Deck.new(config: 'config_text_markup.yml') do
|
||||
x: 10, y: 10, width: 300, height: 200, font: 'Serif 20',
|
||||
markup: true, hint: :cyan
|
||||
|
||||
text str: "Notice also the antialiasing method.",
|
||||
text str: 'Notice also the antialiasing method.',
|
||||
x: 320, y: 10, width: 300, height: 200, font: 'Arial Bold 20'
|
||||
|
||||
save_png prefix: 'config_text_'
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ end
|
||||
Squib::Deck.new(layout: 'playing-card.yml') do
|
||||
text str: "A\u2660", layout: :bonus_ul, font: 'Sans bold 100', hint: :red
|
||||
text str: "A\u2660", layout: :bonus_lr, font: 'Sans bold 100', hint: :red
|
||||
text str: "artwork here", layout: :art, hint: :red
|
||||
text str: 'artwork here', layout: :art, hint: :red
|
||||
save_png prefix: 'layout_builtin_playing_card_'
|
||||
end
|
||||
|
||||
|
||||
@@ -79,15 +79,15 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
|
||||
embed.svg key: ':health:', width: 28, height: 28, file: 'glass-heart.svg'
|
||||
end
|
||||
|
||||
text str: "Fill n <span fgcolor=\"\#ff0000\">stroke</span>",
|
||||
text str: 'Fill n <span fgcolor="#ff0000">stroke</span>',
|
||||
color: :green, stroke_width: 2.0, stroke_color: :blue,
|
||||
x: '1.8in', y: '2.9in', width: '0.85in', font: 'Sans Bold 26', markup: true
|
||||
|
||||
text str: "Stroke n <span fgcolor=\"\#ff0000\">fill</span>",
|
||||
text str: 'Stroke n <span fgcolor="#ff0000">fill</span>',
|
||||
color: :green, stroke_width: 2.0, stroke_color: :blue, stroke_strategy: :stroke_first,
|
||||
x: '1.8in', y: '3.0in', width: '0.85in', font: 'Sans Bold 26', markup: true
|
||||
|
||||
text str: "Dotted",
|
||||
text str: 'Dotted',
|
||||
color: :white, stroke_width: 2.0, dash: '4 2', stroke_color: :black,
|
||||
x: '1.8in', y: '3.1in', width: '0.85in', font: 'Sans Bold 26', markup: true
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user