2013-01-03 09:12:45 +09:00
2013-01-03 09:12:45 +09:00
2013-01-02 09:33:58 -08:00
2013-01-03 09:12:45 +09:00
2013-01-03 09:12:45 +09:00

RubyMotion-Pixate

Pixate gem for RubyMotion.

Requirements

Setup

  1. Download the Pixate Framework package from http://www.pixate.com/ and copy the PXEngine.framework folder into vendor directory. Create the vendor directory if it does not exist. You should have something like this.
$ ls vendor/PXEngine.framework
/Headers/   PXEngine   Resources/ Versions/
  1. Edit the Rakefile of your RubyMotion project and add the following require lines.
require 'rubygems'
require 'motion-pixate'
  1. Still in the Rakefile, set up the user, key and framework variables in your application configuration block.
Motion::Project::App.setup do |app|
  # ...
  app.pixate.user = 'USER ID'
  app.pixate.key  = 'KEY CODE'
  app.pixate.framework = 'vendor/PXEngine.framework'
end
  1. Create the default.css in resources directory.

Usage

motion-pixate provides "style" method in REPL. You could change the stylesheet at the moment in REPL.

(main)> style "button { color : blue; }"
(main)> style "button { background-color: red; corner-radius: 20pt; }"
Description
No description provided
Readme Apache-2.0 551 KiB
Languages
Ruby 100%