Recent

Author Topic: BGRA Controls  (Read 222317 times)

karaba

  • New Member
  • *
  • Posts: 49
Re: BGRA-Controls
« Reply #15 on: April 20, 2014, 04:39:17 am »
That was fast thanks.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #16 on: April 20, 2014, 04:51:45 am »
Great controls.

SVN r12
I've fixed the small problems in Analog Controls, all working.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #17 on: April 22, 2014, 04:24:32 am »
SVN r14
bgra-controls 3.2

We have 25 controls in the BGRA Controls pallete. BCFilters, BCEffect and units with overridable visual components. Games, Custom Drawn Drawer and TAChart demo and other example projects.

Now with Analog Controls: 2 clock and 2 gauge controls. One for quick use and other with custom styling.

Try AssignFromFile for BCButton and BCImageButton to load styles from plain text files at runtime.

Well that's all! Thanks to all contributors in the readme.txt and in this forum that helped to achieve this!

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #18 on: August 15, 2014, 06:54:30 pm »
In the lattest SVN added: BGRAScript.pas and test_bgrascript project.

BGRAScript:
    {TFPCustomImage override}
SetSize,320,240
    {Loading functions}
SaveToFile,"file.png"
    {Loading functions}
SetHorizLine,0,0,100,"rgba(0,0,0,255)"
XorHorizLine,0,0,100,"rgba(0,0,0,255)"
DrawHorizLine,0,0,100,"rgba(0,0,0,255)"
FastBlendHorizLine,0,0,100,"rgba(0,0,0,255)"
AlphaHorizLine,0,0,100,"rgba(0,0,0,255)"
SetVertLine,0,0,100,"rgba(0,0,0,255)"
XorVertLine,0,0,100,"rgba(0,0,0,255)"
DrawVertLine,0,0,100,"rgba(0,0,0,255)"
FastBlendVertLine,0,0,100,"rgba(0,0,0,255)"
AlphaVertLine,0,0,100,"rgba(0,0,0,255)"
DrawHorizLinediff,0,0,100,"rgba(0,0,0,255)","rgba(255,255,255,255)",128
    //--
FillTransparent
Rectangle,0,0,100,100,"rgba(0,0,0,255)","rgba(255,255,255,255)"
RectangleAntiAlias,"0,5","0,5","99,5","99,5","rgba(0,0,0,255)","1,5","rgba(255,255,255,255)"

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA-Controls
« Reply #19 on: August 15, 2014, 09:11:37 pm »
Just a hint about rgba: the last parameter is a single from 0 to 1. I did it like that to follow CSS spec.  8-)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #20 on: August 15, 2014, 10:48:09 pm »
Just a hint about rgba: the last parameter is a single from 0 to 1. I did it like that to follow CSS spec.  8-)

Ok thanks!

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #21 on: August 29, 2014, 09:29:37 pm »
Code: [Select]
procedure FilterRGB(Bitmap: TBGRABitmap; R, G, B: byte);

procedure RBG(Bitmap: TBGRABitmap);
procedure GRB(Bitmap: TBGRABitmap);
procedure GBR(Bitmap: TBGRABitmap);
procedure BRG(Bitmap: TBGRABitmap);
procedure BGR(Bitmap: TBGRABitmap);
procedure RRG(Bitmap: TBGRABitmap);
procedure RGR(Bitmap: TBGRABitmap);
procedure GRR(Bitmap: TBGRABitmap);
procedure RRB(Bitmap: TBGRABitmap);
procedure RBR(Bitmap: TBGRABitmap);
procedure BRR(Bitmap: TBGRABitmap);
procedure GGR(Bitmap: TBGRABitmap);
procedure GRG(Bitmap: TBGRABitmap);
procedure RGG(Bitmap: TBGRABitmap);
procedure GGB(Bitmap: TBGRABitmap);
procedure GBG(Bitmap: TBGRABitmap);
procedure BGG(Bitmap: TBGRABitmap);
procedure BBR(Bitmap: TBGRABitmap);
procedure BRB(Bitmap: TBGRABitmap);
procedure RBB(Bitmap: TBGRABitmap);
procedure BBG(Bitmap: TBGRABitmap);
procedure BGB(Bitmap: TBGRABitmap);
procedure GBB(Bitmap: TBGRABitmap);
procedure RRR(Bitmap: TBGRABitmap);
procedure GGG(Bitmap: TBGRABitmap);
procedure BBB(Bitmap: TBGRABitmap);

Added all these filters, now you can switch easily between all possible combinations of RGB channels.

Added rain project: a random generated animated rain.

Roland57

  • Sr. Member
  • ****
  • Posts: 421
    • msegui.net
Re: BGRA-Controls
« Reply #22 on: August 30, 2014, 11:11:33 am »
Hello 007!

Where can I find the latest version of BGRA-Controls? Could you give a link please?
My projects are on Gitlab and on Codeberg.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: BGRA-Controls
« Reply #23 on: August 30, 2014, 11:39:45 am »
Salut Roland,

va voir par ici :   http://sourceforge.net/p/bgra-controls/code/HEAD/tree/

007  is it the good link ?
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Roland57

  • Sr. Member
  • ****
  • Posts: 421
    • msegui.net
Re: BGRA-Controls
« Reply #24 on: August 30, 2014, 01:22:22 pm »
Merci! That's what I was looking for.
My projects are on Gitlab and on Codeberg.

Basile B.

  • Guest
Re: BGRA-Controls
« Reply #25 on: August 30, 2014, 04:37:18 pm »
Hi 007. Would it be possible for you to put a hook on the SF svn and then to mirror it on gitHUB ? (a bit like what's been done for FPC & Laz) ?

For example if someday, someone uses BGRA-Ctrls in a project hosted on GH it'll be more simple for the guy to put it as a sub dependency. (although it's not granted it'll ever happend).
« Last Edit: August 30, 2014, 04:39:02 pm by Basile B. »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #26 on: August 30, 2014, 10:03:36 pm »
that's the link.

about gh we have one copy but is outdated https://github.com/bgrabitmap
« Last Edit: August 30, 2014, 10:30:47 pm by 007 »

Basile B.

  • Guest
Re: BGRA-Controls
« Reply #27 on: August 31, 2014, 01:31:50 am »

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA-Controls
« Reply #28 on: August 31, 2014, 01:45:04 pm »
Wow Basile that's impressive!
Conscience is the debugger of the mind

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: BGRA-Controls
« Reply #29 on: August 31, 2014, 02:26:48 pm »
more infos about Kaleem
here
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

 

TinyPortal © 2005-2018