examples/basic_image3.rb in glimmer-dsl-libui-0.4.13 vs examples/basic_image3.rb in glimmer-dsl-libui-0.4.14

- old
+ new

@@ -1,7 +1,5 @@ -# frozen_string_literal: true - require 'glimmer-dsl-libui' include Glimmer window('Basic Image', 96, 96) { @@ -14,10 +12,12 @@ # image pixel rendered. Check basic_image4.rb for a faster alternative using on_draw manually. # # It is recommended to pass width/height args to shrink image and achieve faster performance. image { file File.expand_path('../icons/glimmer.png', __dir__) - width 96 +# x 0 # default +# y 0 # default +# width 96 # gets calculated from height while preserving original aspect ratio of 512x512 height 96 } } }.show