Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBJS v0.7.0 - Release
#3
Here is one more example that incorporates nearly all of the new graphics methods:
Code: (Select All)
Import G2D From "lib/graphics/2d.bas"

Cls , 15
G2D.RoundRect 10, 10, 200, 200, 5, 9
G2D.Ellipse 110, 110, 50, 30, 0, 2

G2D.Shadow 0, 7, 7, 10
G2D.FillRoundRect 300, 10, 200, 75, 15, 3
G2D.FillCircle 50, 50, 30, 4
G2D.ShadowOff

G2D.FillEllipse 320, 320, 60, 40, 15, 5

G2D.Shadow 5, 0, 0, 15
Line (350, 150)-(450, 250), 0, BF
G2D.FillTriangle 500, 300, 580, 300, 530, 380, 1
G2D.ShadowOff

G2D.LineWidth 10
Line (20, 300)-(200, 380), 0, B

G2D.LineWidth 15
Line (20, 240)-(200, 240), 4
G2D.LineCap G2D.ROUND
Line (20, 260)-(200, 260), 4
G2D.LineCap G2D.SQUARE
Line (20, 280)-(200, 280), 4

G2D.LineWidth 25
G2D.LineCap G2D.ROUND
G2D.Curve 470, 120, 650, 100, 520, 250, 2

G2D.Shadow 0, 7, 7, 10
G2D.LineWidth 3
G2D.Bezier 260, 20, 200, 100, 310, 150, 260, 250, 1
G2D.ShadowOff

View in QBJS

   
Reply


Messages In This Thread
QBJS v0.7.0 - Release - by dbox - 05-26-2023, 06:23 PM
RE: QBJS v0.7.0 - Release - by dbox - 05-26-2023, 07:04 PM
RE: QBJS v0.7.0 - Release - by grymmjack - 06-03-2023, 10:05 PM
RE: QBJS v0.7.0 - Release - by dbox - 05-26-2023, 07:27 PM
RE: QBJS v0.7.0 - Release - by bplus - 05-26-2023, 10:16 PM
RE: QBJS v0.7.0 - Release - by dbox - 05-26-2023, 10:27 PM
RE: QBJS v0.7.0 - Release - by dbox - 05-26-2023, 10:48 PM
RE: QBJS v0.7.0 - Release - by bplus - 05-27-2023, 03:12 AM
RE: QBJS v0.7.0 - Release - by dbox - 05-27-2023, 02:39 PM
RE: QBJS v0.7.0 - Release - by Coolman - 05-29-2023, 11:20 AM
RE: QBJS v0.7.0 - Release - by dbox - 05-29-2023, 04:50 PM
RE: QBJS v0.7.0 - Release - by grymmjack - 05-29-2023, 11:55 PM
RE: QBJS v0.7.0 - Release - by grymmjack - 05-29-2023, 11:59 PM
RE: QBJS v0.7.0 - Release - by dbox - 05-30-2023, 01:19 AM
RE: QBJS v0.7.0 - Release - by dbox - 05-30-2023, 02:03 PM
RE: QBJS v0.7.0 - Release - by mnrvovrfc - 05-31-2023, 03:15 PM
RE: QBJS v0.7.0 - Release - by dbox - 06-01-2023, 01:22 PM
RE: QBJS v0.7.0 - Release - by dbox - 06-02-2023, 03:50 AM
RE: QBJS v0.7.0 - Release - by mnrvovrfc - 06-02-2023, 05:33 AM
RE: QBJS v0.7.0 - Release - by dbox - 06-12-2023, 07:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QBJS v0.10.0 - Release dbox 9 1,064 1 hour ago
Last Post: bplus
  QBJS v0.9.0 - Release dbox 31 6,110 04-23-2025, 01:14 AM
Last Post: dbox
  QBJS v0.8.0 - Release dbox 11 2,367 02-13-2024, 10:11 PM
Last Post: grymmjack
  QBJS v0.8.2 - Release dbox 0 569 02-02-2024, 11:29 PM
Last Post: dbox
  BAM: Release notes in the works for upcoming release CharlieJV 6 1,435 10-12-2023, 01:42 AM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: 1 Guest(s)