summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb')
-rw-r--r--chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb b/chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb
new file mode 100644
index 00000000..be7c0d89
--- /dev/null
+++ b/chalk/plugins/viewplugins/scripting/samples/ruby/changecs.rb
@@ -0,0 +1,5 @@
+require "krosschalkcore"
+
+doc = Krosschalkcore::get("ChalkDocument")
+image = doc.getImage()
+image.convertToColorspace("LABA")