Search found 31 matches

by Tawbie
Mon Jul 28, 2025 1:04 am
Forum: Coding Questions
Topic: Issue with converting tiny classifier routine into a macro
Replies: 17
Views: 2224

Re: Issue with converting tiny classifier routine into a macro

@STARGÅTE
I must say, your solution to Skipper's question is quite clever.
Also your comment/test results about speed of execution gains using pointers even when passing a single character string is very interesting.
by Tawbie
Mon Jun 02, 2025 4:27 am
Forum: Announcement
Topic: OpenAI REST API
Replies: 28
Views: 9285

Re: ChatGPT REST API

@JHPJHP
In line with Demivec's comments, I read the forum fairly regularly but I do not post unless I have something of value to add (you can tell from how few times I've posted). However, I do realise that feedback and acknowledgement are important in providing encouragement and kudos to the author ...
by Tawbie
Sun Jun 01, 2025 4:59 am
Forum: Off Topic
Topic: What is the actual 50% gray hex?
Replies: 21
Views: 3946

Re: What is the actual 50% gray hex?

Hi Olli,
You cannot manipulate sRGB as if it scales linearly with light intensity, eg. taking 50% of an sRGB value.

Hi Everyone,
As I explained in my earlier post on this thread, the sRGB colorspace typically used in computer displays does NOT scale linearly with light intensity. This means that a ...
by Tawbie
Thu May 29, 2025 5:42 am
Forum: Off Topic
Topic: What is the actual 50% gray hex?
Replies: 21
Views: 3946

Re: What is the actual 50% gray hex?

Hi es_91,
If by saying 50% gray you mean a 50% linear light intensity on a typical sRGB LCD monitor, then you need an RGB value of about (188,188,188). sRGB does not scale linearly with light intensity. The code below shows a comparison of RGB(127,127,127) and RGB(188,188,188) alongside RGB(255,255 ...
by Tawbie
Sun Nov 03, 2024 4:12 am
Forum: Applications - Feedback and Discussion
Topic: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]
Replies: 13
Views: 8566

Re: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]

Catdaddy wrote: Thu Oct 31, 2024 7:24 pm This looks absolutely awesome.
Thank you. PureBasic is indeed a powerful tool.
by Tawbie
Wed Oct 30, 2024 3:24 am
Forum: Applications - Feedback and Discussion
Topic: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]
Replies: 13
Views: 8566

Re: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]

Thank you Fred, Rings and ChrisR for the good wishes.


... A great idea to offer a complementary, simple and user-friendly tool to video editing platforms, I hope for you that it will find its audience.

You're spot on. That is exactly how I am positioning CineCast; and indeed, the greatest ...
by Tawbie
Tue Oct 29, 2024 6:12 am
Forum: Applications - Feedback and Discussion
Topic: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]
Replies: 13
Views: 8566

Re: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]

Thank you all for the kind words and encouragement.

...Incidentally, how was the voiceover made?

The voice over was made with Vegas Pro 365's AI Text to Speech.


... It was pretty neat and then I managed to lose the source which took out the back up too from a power spike...

The wmv demo is ...
by Tawbie
Mon Oct 28, 2024 5:35 am
Forum: Applications - Feedback and Discussion
Topic: CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]
Replies: 13
Views: 8566

CineCast - A Win10 x64 App for creating Feature Film End Credits Rolls [Developed in PureBasic]

Hi everyone,

Prompted by threedslider's post "Any list professional program coded in PB?", https://www.purebasic.fr/english/viewtopic.php?t=85045, I decided to share my story.

THE MOTIVATION:
When creating a credits roll for a film, I have found that although video editing platforms typically ...
by Tawbie
Thu May 30, 2024 12:30 am
Forum: Coding Questions
Topic: All the Unicode characters and CHR() [Resolved]
Replies: 10
Views: 2837

Re: All the Unicode characters and CHR()

Hello KCC,

You can write 4 Hex digit Unicode code points (characters) using Chr() as long as they are supported by the font you are using.
Easiest to just express the code point (without the U+) in hexadecimal, eg.

Code: Select all

Debug Chr($01B5)
Debug Chr($04E8)

; Debug Output
; Ƶ
; Ө
by Tawbie
Thu Sep 29, 2022 7:47 am
Forum: Coding Questions
Topic: Icons with a resolution of 256*256 don't work
Replies: 13
Views: 1390

Re: Icons with a resolution of 256*256 don't work


. ... Can you please provide the file? ...

You can convert an image to an uncompressed ico file using Gimp.



It seems that PB has a problem with Loadimage() and Catchimage() with Icon format 256x256

As a point of interest, LoadImage() appears to work fine with uncompressed 256x256 ico files ...
by Tawbie
Thu Sep 29, 2022 4:48 am
Forum: Coding Questions
Topic: Icons with a resolution of 256*256 don't work
Replies: 13
Views: 1390

Re: Icons with a resolution of 256*256 don't work

Hi jacdelad,

Your code appears to correctly display a 256x256 icon if the ico test file is uncompressed.

Tawbie
by Tawbie
Sun Sep 18, 2022 11:36 pm
Forum: Feature Requests and Wishlists
Topic: TruncList()
Replies: 17
Views: 2606

Re: TruncList()

To truncate a list, A(), at the current element, simply use the following code:

While NextElement(A()) : DeleteElement(A()) : Wend

Example:

NewList A.i()
For i = 0 To 99 ; create 100 elements
AddElement(A())
Next
Debug ListSize(A()) ; verify size

SelectElement(A(), 49) ; select current element ...
by Tawbie
Mon Aug 29, 2022 9:29 am
Forum: Coding Questions
Topic: FindString and ReplaceString slower with #PB_String_NoCase
Replies: 7
Views: 861

Re: FindString and ReplaceString slower with #PB_String_NoCase

Actually, I would have thought that with #PB_String_NoCase, PB would have to do more processing since now it has to test for a match for either upper or lower case versions of each character in the string, hence this would be slower.
by Tawbie
Sun Mar 27, 2022 3:36 am
Forum: Coding Questions
Topic: Checking if linked list exists
Replies: 18
Views: 3461

Re: Checking if linked list exists

AFAIK , TypeOf() can only be used to find out the type of a variable or a structure field, not if a list exists. For example:

Code: Select all

Structure Test
  List Names.s()
EndStructure

If TypeOf(Test\Names) = #PB_List
  Debug "Names is a list"
EndIf
by Tawbie
Sun Mar 27, 2022 2:36 am
Forum: Coding Questions
Topic: Checking if linked list exists
Replies: 18
Views: 3461

Re: Checking if linked list exists

Hi infratec,

I am not sure about using ListSize() to determine if a list exists. If a list does not exist, the app crashes in IDE when you use ListSize(). Interestingly there isn't an IsList() PB function.
NewList MyList.s()

; FreeList(MyList()) ; uncomment this line and app crashes in IDE

If ...