Sha256: f28ebbcbb61ffed0509169ef6498c51e53bc9f688099f2090c2bc8892c52e5a1

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 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-1.0.0 examples/cocoa4-font.rb