Recent

Author Topic: BGRAScript  (Read 10570 times)

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRAScript
« Reply #15 on: August 15, 2014, 10:48:52 pm »
Congrats. Oh so it is possible to mix comma and space in the same CommaText?

Yes in any way.

Here is an example (svn 18):
Code: [Select]
{ BGRAScript }
FillTransparent

Rectangle 0,0,100,100,"rgba(0,0,0,0.6)","rgba(250,250,250,1)","dmDrawWithTransparency"
Rectangle 20,20,80,80,"rgba(0,0,0,0.4)","rgba(255,255,255,1)","dmDrawWithTransparency"
BlendBitmap 26,26,"test.png","boTransparent"
SetHorizLine 1,10,98,"rgba(0,0,0,.3)"
SetVertLine 10,1,98,"rgba(0,0,0,.3)"

SaveToFile "file.png"

BlendBitmap 100,100,"file.png","boTransparent"

SaveToFile "file.png"

BlendBitmap 200,0,"file.png","boTransparent"   

Another code (svn19):
Code: [Select]
{ BGRAScript }
FillTransparent

// Draw rectangles, lines and bitmap
Rectangle 0,0,100,100,"rgba(0,0,0,0.6)","rgba(250,250,250,1)","dmDrawWithTransparency"
Rectangle 20,20,80,80,"rgba(0,0,0,0.4)","rgba(255,255,255,1)","dmDrawWithTransparency"
SetHorizLine 0,10,98,"rgba(0,0,0,.3)"
SetVertLine 90,1,98,"rgba(0,0,0,.3)"
BlendBitmap 26,26,"test.png","boTransparent"

// Save and weird things step 1
SaveToFile "file.png"
Negative
BlendBitmap 0,100,"file.png","boTransparent"

// Save and weird things step 2
SaveToFile "file.png"
Negative
BlendBitmap 100,0,"file.png","boTransparent"

// Flip the world and save it
VerticalFlip 0,0,100,100
HorizontalFlip 100,100,200,200
VerticalFlip 100,0,200,100
HorizontalFlip 100,0,200,100
SaveToFile "file.png"

// Weird things level 3
DrawCheckers 200,0,300,300,"rgba(100,100,100,255)","rgba(0,0,0,0)"
InplaceGrayscaleRect 0,0,100,100
ApplyBitmapMask "file.png",100,100,200,200,0,100

// Save this in your hard disk (again)
SaveToFile "file.png"     
« Last Edit: August 16, 2014, 04:39:29 am by 007 »

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: BGRAScript
« Reply #16 on: August 16, 2014, 06:01:57 pm »
Looks great!  :)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018