Skip to content

Commit

Permalink
Add some comments on The Red Turtle image
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 authored Sep 26, 2021
1 parent ed620e9 commit 81e8b8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/basic_table_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# NOTE:
# This example displays images that can be freely downloaded from the Studio Ghibli website.
# https://www.ghibli.jp/works/red-turtle/
# "Please feel free to use them within the scope of common sense." Toshio Suzuki (producer)

require 'libui'
require 'chunky_png'
Expand All @@ -11,7 +13,7 @@

UI.init

main_window = UI.new_window('The Red Turtle', 310, 350, 0)
main_window = UI.new_window('The Red Turtle (2016)', 310, 350, 0)

hbox = UI.new_horizontal_box
UI.window_set_child(main_window, hbox)
Expand Down Expand Up @@ -58,7 +60,7 @@ def rbcallback(*args, &block)
table_params.RowBackgroundColorModelColumn = -1

table = UI.new_table(table_params)
UI.table_append_image_column(table, 'www.ghibli.jp/works/red-turtle', -1)
UI.table_append_image_column(table, 'Directed by Michaël Dudok de Wit', -1)

UI.box_append(hbox, table, 1)
UI.control_show(main_window)
Expand Down

0 comments on commit 81e8b8d

Please sign in to comment.