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