Search found 376 matches

by UEZ
Feb 28, 2020 13:20
Forum: Tips and Tricks
Topic: Color Constants v0.75 build 2020-02-28 [Windows only]
Replies: 6
Views: 401

Re: Color Constants v0.75 build 2020-02-28 [Windows only]

Thanks dodicat for testing.

Your code works properly as long as the DPI is set to default. The color under the mouse will be false when DPI is > 96.

Sometime hex and Html color differ - I would expect it the same value.
by UEZ
Feb 28, 2020 9:07
Forum: Tips and Tricks
Topic: Color Constants v0.75 build 2020-02-28 [Windows only]
Replies: 6
Views: 401

Re: Color Constants v0.75 build 2020-02-28 [Windows only]

I updated the code.

Can you check if it works properly on your windows machine please?

On the first run it should create the file ColorConstants.txt if it doesn't exist and load it to display it in the listview.

Thanks.
by UEZ
Feb 23, 2020 13:44
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 431

Re: Growing plant in the breeze v0.70

Indeed, the DrawLineAA function is not very good compared to the other. In the past I also added Xiaolin_Wu's line algorithm to FB which gives much better result.

I updated the code from post#1 accordingly.
by UEZ
Feb 20, 2020 20:15
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 431

Re: Growing plant in the breeze v0.6

Nice ! I reordered the code and removed the shared vars and changed byte to integer and deleted pImage ! If you use 2 pages for drawing than a third page (pImage) isn't needed at all. joshy Thanks for your tidy up the code. Regarding the 2 pages - the reason was in my previous version that I didn't...
by UEZ
Feb 20, 2020 13:28
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 431

Growing plant in the breeze v0.70

A short example of a growing plant in the breeze. https://i.ibb.co/v3KgsVf/Plant-in-the-breeze.jpg 'Ported To FreeBasic by UEZ build 2020-02-23 'Original code by civet -> http://wa.zozuar.org/code.php?c=9KQy #Define Min(a, b) (Iif(a < b, a, b)) #Define Max(a, b) (Iif(a > b, a, b)) #Define _Alpha(iCo...
by UEZ
Feb 18, 2020 20:58
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 468

Re: Simple tangent.

@dodicat: thanks for the explanation but what is the advantage to use such construct instead of going straight forward with standard Sin() function?

@Carlos Herrera: thx for your example, too.
by UEZ
Feb 17, 2020 13:43
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 468

Re: Simple tangent.

Hi dodicat, this example reminds me to the good old days at high school. I've a question. How can I understand this function? Function gradient(f As Function(As Double) As Double,x As Double) As Double static As Double dx=1e-6 Return (f(x+dx)-f(x))/dx End Function You have a function named gradient ...
by UEZ
Feb 16, 2020 21:03
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.2

Added color version -> see first post for details.
by UEZ
Feb 16, 2020 19:34
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.1

I see no option to download, so copied and pasted. I updated the code at https://controlc.com/ and changed the string within Base128Decode function to Chr() tokens. This should also work if the data lines are immune against UTF-8 format. That does not seem sufficient, also the data lines are interp...
by UEZ
Feb 16, 2020 16:09
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.1

srvaldez wrote:I see no option to download, so copied and pasted.


I updated the code at https://controlc.com/ and changed the string within Base128Decode function to Chr() tokens. This should also work if the data lines are immune against UTF-8 format.
by UEZ
Feb 16, 2020 12:08
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.1

@Coolman: I know that it works almost for any bitmap but I wanted to show the effect with this image. @badidea, srvaldez: that's unfortunately the issue with UTF-8 and ANSI encoding when using the base128 decoder code. Did you download the archive and tested it or just used copy/paste to the IDE fro...
by UEZ
Feb 16, 2020 11:26
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.1

UEZ I use the .zip downloads for fb. zlib1.dll is in bin/win32 folder but I don't see it in the 64 bit fb. So it cannot be accessed by source code unless the code is in bin/win32. I don't see any zlib in the lib folders. I've no problems with x64. Can you try to add these files to your Freebasic64 ...
by UEZ
Feb 15, 2020 22:28
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Re: Flowing Image v0.1

dodicat wrote:Thanks UEZ.
70 fps here.
32 bit fb has zlib1.dll in the bin/win32 folder.
I copied it and renamed it to z.dll and put it beside your source code.


Thanks for your feedback. I thought that zLib is included by default in the FB package.
by UEZ
Feb 15, 2020 18:41
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 504

Flowing Image v0.2

Here a small example of a flowing image. https://i.ibb.co/QP9RHMS/Flowing-Image.jpg v0.1 Source code (Base64 version) only can be found here: Flowing Image v0.1.bas (486 kb). v0.1 + v0.2 compiled version (x86 + x64) + source code packed with 7-Zip can be found here: Download Link (1.56 mb) Flowing I...
by UEZ
Feb 07, 2020 21:25
Forum: Community Discussion
Topic: winfbe 2.0.3 virus?
Replies: 11
Views: 513

Re: winfbe 2.0.3 virus?

Here the result at www.virustotal.com for 2.0.3.

Go to advanced search