diff options
| author | Tom Black <[email protected]> | 2019-04-15 23:46:58 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2019-04-15 23:46:58 -0500 |
| commit | ea7e78893a36f34e588dcae16c99dc8a1a67a2ee (patch) | |
| tree | 9094cd8194d01e0128525b1edcb58618cb7829cf /lib | |
| parent | b844eee8245e4618db947ea12ed4cb89f0a4b8fb (diff) | |
| download | ruby2d-ea7e78893a36f34e588dcae16c99dc8a1a67a2ee.tar.gz ruby2d-ea7e78893a36f34e588dcae16c99dc8a1a67a2ee.zip | |
Set image anchor point
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/image.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ruby2d/image.rb b/lib/ruby2d/image.rb index 67ce1b1..428706d 100644 --- a/lib/ruby2d/image.rb +++ b/lib/ruby2d/image.rb @@ -18,6 +18,7 @@ module Ruby2D @width = opts[:width] || nil @height = opts[:height] || nil @rotate = opts[:rotate] || 0 + @anchor = opts[:anchor] || :top_left self.color = opts[:color] || 'white' self.opacity = opts[:opacity] if opts[:opacity] unless ext_init(@path) |
