Main Menu

News:

SyntaxBoom, now with pwetty syntax highlighted code boxes! \o/ 

https://www.syntaxboom.com/forum/index.php?topic=96

Shoutbox

Jackdaw

2025-09-26, 22:07:30
Well you learn something new every day. There is a fork of Blender 3D called Bforartists, that has a much better GUI than Blender's own. You'll find the link to it in the new github page in found in https://www.syntaxboom.com/forum/index.php?topic=25.0

Baggey

2025-09-24, 17:57:11
They'll be using Expanding foam to glue bricks together next  :-X

Dabzy

2025-09-24, 06:09:52
You can also get the expanding foam post fix, but, I wouldnt trust it really, especially where I live on the side of a valley and when the storms blow in the right direction, whistling down the valley, nowt is safe!

Baggey

2025-09-23, 08:53:01
That Postcrete stuff is amazing. I never know how much water to add. May be i should read the Instructions  ;D 

Dabzy

2025-09-22, 21:33:46
Cannot beat a breaky uppy mode, saves the hand cramps and chipped knuckles knocking ten bells out of a chod of conc with a hammer and chisel.

GfK

2025-09-22, 21:28:44
I have a massive JCB drill with a concrete breaky uppy mode which has got me out of jail free a couple of times replacing rotted fence posts that has been concreted in.

Amon

2025-09-22, 19:23:30
What about Roly?

Dabzy

2025-09-22, 19:22:35
Putting my 2 deckings in.... I've dug enough post holes to last me a life time... I feel sorry for the future poor sod who may want to shift'em... Like most things I do, I tend to go over the top, and as such, I've probably got shares in postcrete! :D

GfK

2025-09-22, 19:10:57
Round is a shape.

Baggey

2025-09-22, 19:04:49
Consult a qualified electrician for compliance with BS 7671 and local building Regs! Avoid areas where future digging is likely. ;)

Members
  • Total Members: 55
  • Latest: Amon
Stats
  • Total Posts: 1,608
  • Total Topics: 198
  • Online today: 13
  • Online ever: 54 (Sep 14, 2025, 08:48 AM)
Users Online
Welcome to SyntaxBoom. Please login or sign up.

Recent

DATA values to 2d array values

Started by RemiD, Jun 29, 2025, 11:30 AM

Previous topic - Next topic

RemiD

a code example (blitzbasic) to demonstrate how to read and put the values of DATA rows / columns to a 2d array
;DATA values to 2d array values (2025.06.29)

Graphics( 640, 360, 32, 2 )

Dim grey_val%( 6, 4 )

Restore greys_data 
For row% = 1 To 4 Step+1
 For col% = 1 To 6 Step+1
  Read grey% 
  grey_val( col, row ) = grey ;: DebugLog( grey )
 Next
Next 

Local greys_image = CreateImage( 6, 4 )
SetBuffer( ImageBuffer( greys_image ) )
For gx% = 1 To 6 Step+1
 For gy% = 1 To 4 Step+1
  grey% = grey_val%( gx, gy )
  Color( grey, grey, grey ) : Plot( gx-1, gy-1 )
 Next
Next
ScaleImage( greys_image, 10, 10 )

SetBuffer( BackBuffer() )
ClsColor( 000, 000, 000 ) : Cls()
DrawImage( greys_image, GraphicsWidth()/2-ImageWidth(greys_image)/2, GraphicsHeight()/2-ImageHeight(greys_image)/2 )

WaitKey()
End()

.greys_data 
Data 010, 250, 010, 250, 010, 250
Data 250, 010, 250, 010, 250, 010
Data 060, 180, 060, 180, 060, 180
Data 180, 060, 180, 060, 180, 060