Search found 122 matches

by Muttonhead
Mar 29, 2020 22:20
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 432

Re: Best approach to fit n rectangles into a screen

screen 19,32 dim as single xbox,ybox,xtile,ytile dim as integer numtiles,afactor,bfactor,diff,ndiff,Q numtiles=39 xbox=640 ybox=480 afactor=1 bfactor=numtiles Q=2 do do if (bfactor mod Q) then exit do diff=abs(afactor-bfactor) ndiff=abs(afactor*Q - bfactor/Q) if ndiff>=diff then exit do afactor *=Q...
by Muttonhead
Mar 29, 2020 21:57
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 432

Re: Best approach to fit n rectangles into a screen

remember, 13,11,17..... are prime numbers. in these cases are stripes only possible.
Mutton
by Muttonhead
Mar 29, 2020 20:40
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 432

Re: Best approach to fit n rectangles into a screen

screen 19,32 dim as single xbox,ybox,xtile,ytile dim as integer numtiles,afactor,bfactor,diff,ndiff numtiles=52 xbox=320 ybox=240 afactor=numtiles bfactor=1 do if (afactor mod 2) then exit do diff=abs(afactor-bfactor) ndiff=abs(afactor/2 - bfactor*2) if ndiff>=diff then exit do afactor /=2 bfactor ...
by Muttonhead
Feb 26, 2020 21:36
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

... ok, it just surprised me when the last time someone has read the source code so intensively, which, admittedly, is not very readable! i apologize for my suppositions and assumptions :) austria you said, then it would be easier for me to give help or tips in native language via pm. Anyway, additi...
by Muttonhead
Feb 26, 2020 21:04
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

hello ppf, although i think that you and petan are one and the same person - which is generally no problem at all - what did i actually want to say at the moment i'm more concerned about world health than sGUI. Maybe it is panic-mongering or it is played down a bit, but... who knows... someone in th...
by Muttonhead
Jan 22, 2020 19:01
Forum: General
Topic: Squares
Replies: 7678
Views: 471130

Re: Squares

Is there any chance of knowing what this is about?
I don't want this to sound rude or presumptuous.
I once tried to follow this in "fast forward" and, admittedly, I did not quite succeed.
So, Albert, can you tell me in summary, whats your goal?
Sincerely, Mutton.
by Muttonhead
Apr 20, 2019 16:43
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

interesting. but the examples in version 0.8.60 no longer work...

is still a piece of work, but the differences between the two versions are not as big as it is impossible.
Mutton
by Muttonhead
Apr 19, 2019 20:50
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

https://1drv.ms/u/s!AsTPhVzcfzRrh_I9h5SYXlLPJHzt5Q

...after a very long time... something new again. There will be a kind of window system in the successor. At the moment only this one exists. I'm amazed what you can do with a single thread.

Mutton
by Muttonhead
Aug 26, 2018 17:47
Forum: Projects
Topic: Eschecs 1.2.1 (UCI chess GUI)
Replies: 381
Views: 57895

Re: Eschecs 1.2.1 (UCI chess GUI)

@ Roland and Paul Doe: if that is the cause of the bug I can offer a modified Version: 64Bit support and for the mouse buttons, mouse position and mouse wheel a ScreenEvent is now used. But that has not been extensively tested, either alone or with your chess program. https://1drv.ms/u/s!AsTPhVzcfzR...
by Muttonhead
Sep 09, 2017 17:11
Forum: Tips and Tricks
Topic: Average color function
Replies: 3
Views: 913

Re: Average color function

Hmmmm, look at row 17 in the code #include "fbgfx.bi" 'Average color function: 'given an array of rgb colors values as argument 'returns the average color using the arithmetic mean function average_color(rgb_values() as Ulong) as Ulong dim as integer r, g, b, c r = 0 : g = 0 : b = 0 for c ...
by Muttonhead
Sep 02, 2017 6:56
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

Kot wrote:The link to short pdf reference gives 404 error :(

fixed
by Muttonhead
Jul 26, 2017 3:23
Forum: Projects
Topic: sGUI
Replies: 226
Views: 38021

Re: sGUI

oh it looks like a bug in sGUI_v0.8.56 open ListBox.bas in the sGUI folder at row 90 you will find this: sub DrawList (gad as Gadget ptr) dim as Gadget ptr listbox listbox=gad->subevent->GadgetList->GetFirst DrawGadget(listbox) end sub change it to: sub DrawList (gad as Gadget ptr) dim as Gadget ptr...
by Muttonhead
May 15, 2017 20:38
Forum: Tips and Tricks
Topic: Simulation of Glitches (GFX)
Replies: 5
Views: 998

Re: Simulation of Glitches (GFX)

still not work: i see only glitches
:P
nice
by Muttonhead
May 02, 2017 17:52
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6043

Re: Programming/math "puzzle" for you, guys

"Everything has an (one) end, only the sausage has two"... well done :)

Mutton

Go to advanced search