From 9e7b8a61b772f77009d9046394b4dae4e523dbe6 Mon Sep 17 00:00:00 2001 From: boxgaming <75969133+boxgaming@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:47:50 -0600 Subject: [PATCH] Add files via upload --- samples/include/caman.bas | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 samples/include/caman.bas diff --git a/samples/include/caman.bas b/samples/include/caman.bas new file mode 100644 index 0000000..0766dc8 --- /dev/null +++ b/samples/include/caman.bas @@ -0,0 +1,23 @@ +Export Render + +IncludeJS "https://cdnjs.cloudflare.com/ajax/libs/camanjs/4.0.0/caman.full.min.js" + +Sub Render(opts) +$If Javascript Then + Caman("#gx-canvas", function() { + if (opts.brightness) { this.brightness(opts.brightness); } + if (opts.contrast) { this.contrast(opts.contrast); } + if (opts.saturation) { this.saturation(opts.saturation); } + if (opts.vibrance) { this.vibrance(opts.vibrance); } + if (opts.exposure) { this.exposure(opts.exposure); } + if (opts.hue) { this.hue(opts.hue); } + if (opts.sepia) { this.sepia(opts.sepia); } + if (opts.gamma) { this.gamma(opts.gamma); } + if (opts.noise) { this.noise(opts.noise); } + if (opts.clip) { this.clip(opts.clip); } + if (opts.sharpen) { this.sharpen(opts.sharpen); } + if (opts.blur) { this.stackBlur(opts.blur); } + this.render(); + }); +$End If +End Sub \ No newline at end of file