Sha256: 8762188e1d4846afe3e6717e4e9b804012d303327cd2f2f3700f9073a80689aa

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

#!/usr/bin/env ruby
# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved.

require "sgl/cocoa"

def setup
  window 700, 700
  backgroundHSV 66, 100, 20
  $font1 = font("Helvetica")
  $font2 = font("GothicMB101Pro-Ultra")
#  $font.show_all
#  $font.show_fixed
end

def display
  x, y = mouseX, mouseY
  colorHSV 0, 50, 100, y/3
  $font1.size = x
  $font1.text(x, y, "hello")
  $font2.size = y
  $font2.text(x-50, y-50, "Š¿Žš")
end

mainloop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-0.4.0 examples/cocoa4-font.rb