Search found 16 matches

by Milivoj
Jul 15, 2013 13:42
Forum: Beginners
Topic: png image loading in fb .90
Replies: 2
Views: 877

Re: png image loading in fb .90

Thankyouthankyou!

I've copied libz.dll.a from "lib" folder in FB 0.24, and it works fine.
Good to know about the other libraries as well.

Best regards, Milivoj
by Milivoj
Jul 15, 2013 10:17
Forum: Beginners
Topic: png image loading in fb .90
Replies: 2
Views: 877

png image loading in fb .90

I'm not really a beginner, but the question seems very much so:

Migrating from fb .24 to fb .90 makes a program no longer compile.
The program uses libfbpng.a static library and fbpng.bi header.
During the compilation an error occurs:

cannot find -lz

What's missing?

Cheers, Milivoj
by Milivoj
Oct 05, 2011 14:06
Forum: Sources, Examples, Tips and Tricks
Topic: Pendulum waves
Replies: 9
Views: 2836

If there's physics involved...

Some bouncing balls code, with speed statistics on the right. Sorry about old coding style, sorry about comments in croatian. defint i-n:defdbl a-h,o-z screenres 900,600 for i=0 to 255:palette i,i,i,i:next i sx=800:sy=600 n=36:dt=0.01:r=10 dim a(4,n) as double for i=1 to n a(1,i)=20*i:a(2,i)=sy-15*i...
by Milivoj
Dec 22, 2010 22:55
Forum: Beginners
Topic: executing a string
Replies: 3
Views: 1158

executing a string

I would appreciate any help on the following: Let's say that a is a string with a value e.g. "p=x+y". Is it possible in freebasic to put a command that would execute the value of a , i.e. be equivalent to p=x+y (of course, not this specific command, the value of the string may change) I tr...
by Milivoj
Feb 23, 2010 14:56
Forum: Beginners
Topic: Coming from RapidQ and ... Freebasic not that easy
Replies: 10
Views: 3288

all code from the link MichaelW posted in one file (i don't know why he dont put the link in his first post) http://freefile.kristopherw.us/uploads/freebasic/dialogs.zip Joshy This may sound a bit foolish, but is it possible to use these commands in GFX window (declared by SCREEN...) Thanks, Milivoj
by Milivoj
Feb 04, 2009 17:13
Forum: Beginners
Topic: Help: Bell Curve Distribution [Solved]
Replies: 5
Views: 1449

Try this (very simple) program: Code: Screen 12 Dim i(640) Do x = Int((Rnd + Rnd + Rnd + Rnd + Rnd) * 100)+20 Pset (x - 1, 460 - i(x)) i(x) = i(x) + 1 Locate 1, 1: Print Time$ Loop Until Inkey$ <> "" You can change the width of the gaussian by changing the value 100, and the center by chan...
by Milivoj
Dec 23, 2008 21:42
Forum: Beginners
Topic: size of a BMP file (w*h)
Replies: 3
Views: 1446

MAybe you didn't try hard enough?
Yes, my bad. I guess one should try SEVERAL keywords in search engine...

Thanks alot, Milivoj
by Milivoj
Dec 23, 2008 20:56
Forum: Beginners
Topic: size of a BMP file (w*h)
Replies: 3
Views: 1446

size of a BMP file (w*h)

I'm sorry I couldn't find it in previous posts, but I want to know how to get the size (width*height in pixels) of a BMP. I know I can BLOAD it, but I want something that doesn't actually load the image, but rather finds one with a given size. Also, the color depth would be nice (BPP), but that isn'...
by Milivoj
Oct 15, 2008 11:49
Forum: Beginners
Topic: Changing default font
Replies: 2
Views: 2192

Changing default font

Has anyone ever tried to change the default font which fbc compiler uses with SCREEN and SCREENRES commands? I don't mean seting your own font to be used with DRAW STRING, but rather the one with PRINT, INPUT etc.

Best regards, Milivoj
by Milivoj
Jan 28, 2008 11:14
Forum: Beginners
Topic: including .exe files in compiled .exe
Replies: 4
Views: 1931

including .exe files in compiled .exe

I would like to invoke an external .exe from FB i.e.

Code: Select all

shell "myfile.exe"
I would like it to be included in the compiled file, so that it makas no confusion
which exe to use. Should I use resource files for that? Help, please

I'm using WinXP
by Milivoj
May 28, 2007 8:52
Forum: Sources, Examples, Tips and Tricks
Topic: Mandelbrot Explorer
Replies: 5
Views: 2116

Mandelbrot Explorer

Although it was done several times before, here is my attempt to make a good explorer of the Mandelbrot set. Enjoy. Best regards, Milivoj defdbl a-h,o-z defint i-n Function ic(kx,ky,xmag) As Integer x = xmag * kx y = xmag * ky a = 0: b = 0 FOR k = 0 TO 255 c = a a = a * a - b * b + x b = 2 * c * b +...
by Milivoj
Jan 18, 2007 10:01
Forum: Beginners
Topic: icon of a SCREEN or SCREENRES window
Replies: 3
Views: 1436

Thanks! Sorry for repeating a request, I should have searched the forum first, but I believe it's no harm to refresh an issue if it is not too often. The article is very usefull, and it clearly distinguishes two issues 1. Having the icon appear when .exe file is browsed 2. Icon set on the top of the...
by Milivoj
Jan 17, 2007 14:41
Forum: Beginners
Topic: icon of a SCREEN or SCREENRES window
Replies: 3
Views: 1436

icon of a SCREEN or SCREENRES window

Is it possible to change the 'blank icon' that appears after say a SCREEN 12 statement? I know that the name of the window can be changed using WindowTitle "Any name" command, but what about the icon? It would be nice if the default were FB logo icon and if you could change it. I know it i...
by Milivoj
Dec 18, 2006 17:00
Forum: Libraries Questions
Topic: Compression libraries
Replies: 7
Views: 3640

While you're at it, a FB algorithm utilising LZW compression and decompression would be apreciated too.

Bok, Krcko
by Milivoj
Dec 15, 2006 11:28
Forum: Archive
Topic: Soldier's Misfortune - A 2D third person minesweeping game.
Replies: 14
Views: 3755

or were you talking about the game's resource pictures? Yes, as a matter of fact my picture word was actually a link on zipped file with alternative pictures, but I'm new to posting on forums (!). I propose pictures with less bits-per-pixel. Anyway it makes "grass1" file size different fr...