Search found 129 matches

by Muttonhead
Nov 08, 2015 19:04
Forum: General
Topic: How to get informations on current loaded font?
Replies: 11
Views: 742

Re: How to get informations on current loaded font?

look at Voltas post: https://forum.qbasic.at/viewtopic.php?p=81456#81456 function GetSysFontHeight as integer dim as integer h,fheight screeninfo ,h select case h\hiword(width) case is < 8 fheight=0 case 8 to 13 fheight=8 case 14, 15 fheight=14 case is > 15 fheight=16 end select function=fheight end...
by Muttonhead
Nov 05, 2015 14:32
Forum: Community Discussion
Topic: Version 1.04.0
Replies: 89
Views: 10374

Re: Version 1.04.0

@dodicat: i dont know whats happen or if this can happen... i've got an idea: the first row of the whole code can be this: dim as integer myvariable it looks like the recent compiler package read only the first char of the code !!! the "d". resulting error message: E:\_FB_Enviroment\wxFBE\...
by Muttonhead
Nov 05, 2015 7:01
Forum: Community Discussion
Topic: Version 1.04.0
Replies: 89
Views: 10374

Re: Version 1.04.0

Hmmm a new day and I can't repeat this behavior too. Don't know what was wrong with my machine yesterday.
i have used fbc v 1.04 and the error message looked like the compiler detect the first char in code as a missused (not declared) variable.

Mutton
by Muttonhead
Nov 04, 2015 21:35
Forum: Community Discussion
Topic: Version 1.04.0
Replies: 89
Views: 10374

a bug?

if I am a beginner,
and my first steps in programing looks like this:

Code: Select all

dim as integer i
for i=1 to 3
  print i
next i

sleep


i get this here:

C:\....Test.bas(1) error 41: Variable not declared, d


this could be frustrating ;)

Mutton
by Muttonhead
Jul 24, 2015 6:10
Forum: Beginners
Topic: money format
Replies: 12
Views: 1322

Re: money format

i think the term "money/100" is a float and has its well-known typical precision and rounding problems may be I am wrong edit... edit2: dodicat provides a rounding function too, ...so I trust myself again 'inspired by http://www.dreael.ch/Deutsch/BASIC-Knowhow-Ecke/Gleitkommazahlen.html 'a...
by Muttonhead
Jul 14, 2015 17:55
Forum: Tips and Tricks
Topic: a simple image filter
Replies: 1
Views: 790

a simple image filter

second trial :) at first you need this .bi: http://www.freebasic-portal.de/porticula/colordefinitionv2-01-bi-1807.html This is a small HSV<->RGB converter. It works like a black box. Put some information in, manipulate the dates inside, get other infomation back. filter example: #include "fbgfx...
by Muttonhead
Jul 10, 2015 21:31
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3075

Re: a very very basic contour finder :)

you need more than 4 connected pixels: #include "fbgfx.bi" 'some types type vector x as single y as single end type type crawlmessage searchstate as integer'0=stop searching, 1=search for firstpos, 2= search newpos in contour incontour as integer'is 1 when currentpos is in the contour firs...
by Muttonhead
Jul 10, 2015 18:24
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3075

Re: a very very basic contour finder :)

final #include "fbgfx.bi" 'some types type vector x as single y as single end type type crawlmessage searchstate as integer'0=stop searching, 1=search for firstpos, 2= search newpos in contour incontour as integer'is 1 when currentpos is in the contour firstpos as vector 'first discovered ...
by Muttonhead
Jul 03, 2015 14:25
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3075

Re: a very very basic contour finder :)

hey, its in progress. there are some known problems, other problems will appear. Its an approach, nothing more :)
Last but not least, it depends on the requirements.

to your example: what is it? one or two closed shapes.

Mutton
by Muttonhead
Jul 03, 2015 12:00
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3075

Re: a very very basic contour finder :)

second trial: a black shape and a bug on the waltz, no inner outline nor outer inline #include "fbgfx.bi" 'some types type vector x as single y as single end type type crawldata searchstate as integer'0=stop searching, 1=search for firstpos, 2= search newpos in contour foundnew as integer'...
by Muttonhead
Jul 02, 2015 20:23
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3075

a very very basic contour finder :)

inspired by some threads... type vector x as single y as single end type declare function FindNext (source as vector, byref dest as vector) as integer screenres 640,480,32 dim shared as integer scrw,scrh screeninfo scrw,scrh dim shared as uinteger background,border,foundcolor,pixel,prevpixel,nextpix...
by Muttonhead
Jun 28, 2015 14:00
Forum: Projects
Topic: Data Reduction Challenge
Replies: 29
Views: 3921

Re: Data Reduction Challenge

... didn't follow the success of reduction: Baaahhhh I am far away :) i hate the zig-zags in the legs screenres 640,480,32 dim as integer x,y restore pts for i as integer = 0 to 2844 read x,y pset(x,y),rgb(255,255,255) next i print "prez kee" sleep type p2d as integer x,y end type function...
by Muttonhead
Apr 28, 2015 6:01
Forum: Beginners
Topic: How do you make the line animate forward/backward?
Replies: 19
Views: 2249

Re: How do you make the line animate forward/backward?

"animate" the patternstring itself. or playing with shr and shl in the patternvalue screen 19,32 dim as string patternstring patternstring="0000111100001111" do cls print patternstring line(10,30)-(600,300),,,val("&B" & patternstring) patternstring=right(pattern...
by Muttonhead
Apr 10, 2015 4:33
Forum: Tips and Tricks
Topic: Yet another play: Iteratative solution of z^n = 1
Replies: 6
Views: 1166

Re: Yet another play: Iteratative solution of z^n = 1

My educational background is not the highest, so I dont understand what happened there, but it looks nice
by Muttonhead
Apr 05, 2015 8:07
Forum: Tips and Tricks
Topic: rnd
Replies: 7
Views: 1550

Re: rnd

take "the scream" by Edvard Munch,
this effect as an alien with tentacles in the background
and the string theme from the psycho movie
:D

Mutton

Go to advanced search