Search found 5666 matches

by dodicat
Apr 23, 2019 9:22
Forum: General
Topic: Mandelbrot and Julia Sets fractals without any drawing code?
Replies: 3
Views: 221

Re: Mandelbrot and Julia Sets fractals without any drawing code?

Here, the Julia set. 'Julia fractals Type complex As Single re,im End Type Operator +(n1 As complex,n2 As complex) As complex Return Type<complex>(n1.re+n2.re,n1.im+n2.im) End Operator Operator *(n1 As complex,n2 As complex) As complex Return Type<complex>(n1.re*n2.re - n1.im*n2.im,n1.im*n2.re + n1....
by dodicat
Apr 20, 2019 10:19
Forum: Projects
Topic: sGUI
Replies: 213
Views: 31107

Re: sGUI

sGUI_Misc.bas has one residual suffix $ attached so it has to be removed for 1.06. There are possibly others. If you actually use -s gui as a compiler switch in 64 bits then the bug viz: https://www.freebasic.net/forum/viewtopic.php?f=6&p=260105#p260105 applies(in Win 10 anyway).
by dodicat
Apr 20, 2019 9:45
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 6
Views: 527

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

Looks like a bug. If you set your driver to GDI, it is a workaround, although My win 10 displays GDI whether I choose GDI or DirectX, but if I set GDI the screen remains in focus with 64 bit -s gui. screencontrol 103,"GDI" Screen 1 dim as string driver screencontrol 9,driver print driver S...
by dodicat
Apr 18, 2019 14:47
Forum: Tips and Tricks
Topic: 3d animated tunnel in pure FB
Replies: 15
Views: 17353

Re: 3d animated tunnel in pure FB

hurtado wrote:What is MP_1? I have never seen it


Tangle[x][y] = (int)(atan2(cy - y, cx - x) * 256. / M_PI ); // line 88

sorry, M_PI I meant to write.
by dodicat
Apr 18, 2019 11:06
Forum: Tips and Tricks
Topic: 3d animated tunnel in pure FB
Replies: 15
Views: 17353

Re: 3d animated tunnel in pure FB

Thanks hurtado. Perhaps my tiny c is a bit old. If I strip the .exe before I run it, the false positive is gone. It strips to 10 kb, and runs fine. This is probably why the .exe files produced by freebasic -gen gcc don't give avira problems, because compiled .exe by gcc (Dev-C++, or mingw) often giv...
by dodicat
Apr 18, 2019 9:06
Forum: Tips and Tricks
Topic: 3d animated tunnel in pure FB
Replies: 15
Views: 17353

Re: 3d animated tunnel in pure FB

In tiny c, MP_I isn't declared, so a fail. I made MP_I as 1, just to get a runner, compiled fine, but Avira antivirus stopped the .exe from running and ditched it into the quarantine. fb 1.06 is no longer compatible with much of the old fb forum code due to ... Suffixes are only valid in -lang fb or...
by dodicat
Apr 17, 2019 11:58
Forum: Projects
Topic: 3D Geometry , basics
Replies: 28
Views: 2882

Re: 3D Geometry , basics

Yea UEZ, it is that sine wave thing coloured in. Luxan lines 186 to 189 for the shading. First take two adjacent sides of a four sided polygon and cross product them to get a normal line to the face. Then dot product this with Type(1,.5,0), which represents a light source point if you imagine a tiny...
by dodicat
Apr 16, 2019 21:28
Forum: Projects
Topic: 3D Geometry , basics
Replies: 28
Views: 2882

Re: 3D Geometry , basics

Thank you Luxan. This is non string parser, but experimenting with light shading with a given trig function. Type V3 As Single x,y,z End Type Operator -(v1 As v3,v2 As v3) As v3 'v1-v2 Return Type(v1.x-v2.x,v1.y-v2.y,v1.z-v2.z) End Operator Operator ^ (Byref v1 As v3,Byref v2 As v3) As v3 'cross pro...
by dodicat
Apr 16, 2019 13:40
Forum: Documentation
Topic: Wiki improvements
Replies: 293
Views: 21273

Re: Wiki improvements

Yea, the forum search.
That is good now.
I also have the the win32.chm.
Also I use the pascal .chm files, but they are not well built, I mainly google for pascal help.
But I am definitely CHM people when help is needed (all the time in my case).
by dodicat
Apr 16, 2019 10:56
Forum: Documentation
Topic: Wiki improvements
Replies: 293
Views: 21273

Re: Wiki improvements

Why I never use the wiki help:
If I go to Badidea's put page (KeyPgPutfileio) and say I wanted to view get, I put get into the search, it says no matches for get.
I am probably using the wiki help incorrectly, but I am not practised in it, I always use the .chm help file.
by dodicat
Apr 16, 2019 9:49
Forum: General
Topic: Squares
Replies: 6389
Views: 366592

Re: Squares

val (double) is good for ulong, you can use double for a 32 bit colour for example. But for ulongint, double is not accurate. Example: dim as ulong ul=4294967196 dim as ulong aul(1 to 50) for n as long=1 to 50 aul(n)=ul+n next for n as long=1 to 49 if val(str(aul(n+1)))-val(str(aul(n))) <>0 then pri...
by dodicat
Apr 15, 2019 20:56
Forum: General
Topic: Squares
Replies: 6389
Views: 366592

Re: Squares

Hi Albert. valulng--for ulongint cast(ulongint,cvlongint(~)) -- for ulongint and bring bin to 64 places for ulongint 'screen 19 #define range(f,l) Int(Rnd*((l+1)-(f))+(f)) do dim as string binari="" for z as long=1 to 4 'get number a multiple of 64 digits for a as longint = 0 to 63 if a=0 ...
by dodicat
Apr 14, 2019 11:44
Forum: Projects
Topic: 3D Geometry , basics
Replies: 28
Views: 2882

Re: 3D Geometry , basics

Thank you Luxan. Really nice. I tried with other f1 functions. I like the polygon fill (and outline), really fast and efficient. I note you use a 2D array instead of a standard p.x,p.y, but it works well, and for p.x,p.y people, these points are easily converted to an array. I had a similar thing a ...
by dodicat
Apr 12, 2019 21:04
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1722

Re: fbGFX: BUG in Paint statement

Blended is maybe better than blending. Out of the Gaelic, as spoken in Western France, Cornwall, Wales, Ireland, Scotland and the Isle of Man (some locations very little now), only Ireland didn't include a past tense. The wouldn't have the word BLENDED, but for a workaround they would say AFTER BLEN...
by dodicat
Apr 12, 2019 11:32
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 564

Re: Speed issue with string concatenation and a solution

It is desperately slow I see.
But if you take the weight off the concatenations in the adding sub by

sub adding(sg as string)
var t=sg
test.strg+=t
end sub

It is back up to speed.

Go to advanced search