Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
dxruby_rp5
is a ruby library for 2D graphics and game. dxruby_rp5
uses ruby-processing
and has API same as DXRuby.
dxruby-rp5
is inspired by and referring to dxruby_sdl
.
see https://github.com/jashkenas/ruby-processing#installation
Add this line to your application's Gemfile:
gem 'dxruby_rp5'
If your ruby-processing version is lower than 2.4.0 (ex. 2.3.x):
gem 'dxruby_rp5', '0.0.2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dxruby_rp5
If your ruby-processing version is lower than 2.4.0 (ex. 2.3.x):
$ gem install dxruby_rp5 -v 0.0.2
$ dxrp5 --nojruby run my_dxruby_sketch.rb
If my_dxruby_sketch.rb
is like below,
require 'dxruby'
x = 0
y = 0
image = Image.load('./images/test.png')
Window.loop do
x = x + Input.x
y = y + Input.y
Window.draw(x, y, image)
end
dxrp5
converts the source code as follows.
class Sketch < Processing::App
def setup
require 'dxruby'
x = 0
y = 0
image = Image.load('./images/test.png')
Window.loop do
x = x + Input.x
y = y + Input.y
Window.draw(x, y, image)
end
end
def draw
end
end
And in Window.loop
, Sketch#draw
method is defined dynamically.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that dxruby_rp5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.