Page 1 of 1

Painterro-Demo

Posted: Fri Sep 27, 2019 6:57 am
by Peter
Painterro on GitHub wrote:Painterro is JavaScript painting widget (paint library) which allows editing images in a browser.
It can be easily integrated into your website or blog by including only one JS file and calling initialization code.


Proof of Concept - Code:
Code: Select all
EnableExplicit

#Window = 0
#Container = 0

Procedure PainterroReady()
 
  OpenWindow(#Window, #PB_Ignore, #PB_Ignore, 800, 600, "Painterro-Demo", #PB_Window_ScreenCentered)
 
  ContainerGadget(#Container, 0, 0, WindowWidth(#Window), WindowHeight(#Window))
 
  Protected GadgetID = GadgetID(#Container)
 
  ! Painterro( { id: $(v_gadgetid.div.innerHTML)[0].id } ).show();
 
EndProcedure

LoadScript("https://cdn.jsdelivr.net/npm/painterro@1.0.6/build/painterro.min.js", @PainterroReady())


Image


Dokumentation: https://github.com/ivictbor/painterro

Have fun ... Peter

Re: Painterro-Demo

Posted: Tue Nov 05, 2019 12:35 pm
by Fred
Very cool to see integrated in a SB window :)