Skip to content

Commit 7ef7354

Browse files
committed
Add message
1 parent fbd7ddd commit 7ef7354

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

processing_app/topics/advanced_data/load_save__struct_yaml.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def setup
1414

1515
def draw
1616
background 255
17+
fill 0
18+
text_align(LEFT)
19+
text('Click to add bubbles.', 10, height - 10)
1720
bubbles.each do |bubble|
1821
bubble.display
1922
bubble.rollover(mouse_x, mouse_y)

processing_app/topics/advanced_data/load_save_json.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ def setup
1414
sketch_title 'Load save json'
1515
# initialize bubble_data with 'key' and read data from 'file path'
1616
@bubble_data = BubbleData.new 'bubbles'
17-
bubble_data.load_data 'data/data.json'
17+
bubble_data.load_data(data_path('data.json'))
1818
end
1919

2020
def draw
2121
background 255
22+
fill 0
23+
text_align(LEFT)
24+
text('Click to add bubbles.', 10, height - 10)
2225
# draw the bubbles and display a bubbles label whilst mouse over
2326
bubble_data.display mouse_x, mouse_y
2427
end
2528

2629
def settings
27-
size 640, 360, FX2D
30+
size 640, 360
2831
end
2932

3033
def mouse_pressed

processing_app/topics/advanced_data/load_save_yaml.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ def setup
1414

1515
def draw
1616
background 255
17+
fill 0
18+
text_align(LEFT)
19+
text('Click to add bubbles.', 10, height - 10)
1720
bubbles.each do |bubble|
1821
bubble.display
1922
bubble.rollover(mouse_x, mouse_y)
2023
end
21-
text('Click to add bubbles.', 10, height - 10)
2224
end
2325

2426
def load_data

0 commit comments

Comments
 (0)