Search found 102 matches

by Mr.L
Tue Apr 09, 2024 7:40 pm
Forum: Coding Questions
Topic: Vector Drawing
Replies: 6
Views: 391

Re: Vector Drawing

Maybe you use RGB values instead of RGBA values? Maybe the code "Until Not MouseButton(#PB_MouseButton_Left)" is missing an "ExamineMouse"? To get the MouseButton state on a CanvasGadget use "GetGadgetAttribute(Canvas_0, #PB_Canvas_Buttons)" I don't know if that is what...
by Mr.L
Sun Apr 07, 2024 6:50 pm
Forum: Applications - Feedback and Discussion
Topic: sho.co interpreter
Replies: 3
Views: 492

Re: sho.co interpreter

Thanks for the response, I accidently set the project to 'private'... :oops:
Please try again, the link should work now
by Mr.L
Sat Apr 06, 2024 7:37 pm
Forum: Applications - Feedback and Discussion
Topic: sho.co interpreter
Replies: 3
Views: 492

sho.co interpreter

Here is a little program of mine that I wrote for my entertainment... It's an interpreter for my own programming language called "sho.co"! Before running the code, it is first compiled into an assembly-like code which is then interpreted. It comes with a small IDE, an assembly viewer, a fe...
by Mr.L
Mon Mar 18, 2024 4:12 pm
Forum: Announcement
Topic: Chordian - An Omnichord Emulator
Replies: 9
Views: 727

Re: Chordian - An Omnichord Emulator

I have not had that happen on my machines, and that includes a tablet from 2015. What happened, specifically? While playing some chords suddenly the sound went off. After restarting the App, the sound was playing again... I have no clue how that did happen and couldn't reproduce it later. Maybe it'...
by Mr.L
Mon Mar 18, 2024 7:34 am
Forum: Announcement
Topic: Chordian - An Omnichord Emulator
Replies: 9
Views: 727

Re: Chordian - An Omnichord Emulator

Very nice project! I have tested your app now for some time - it's fun to play around with it! A few times the soundsystem broke down, there was no sound anymore and I had to restart the program. (Windows 11, I ran the 'chordian_x64.exe') Maybe it is possible to make the Window scaleble? I guess wit...
by Mr.L
Fri Feb 16, 2024 8:36 pm
Forum: Applications - Feedback and Discussion
Topic: simple oil paint simulator
Replies: 5
Views: 500

Re: simple oil paint simulator

Fred wrote: Fri Feb 16, 2024 8:27 pm Just tried on OS X and it works perfectly, nice job !
Thank you, but nice work by YOU, in fact :)
by Mr.L
Fri Feb 16, 2024 7:08 pm
Forum: Applications - Feedback and Discussion
Topic: simple oil paint simulator
Replies: 5
Views: 500

simple oil paint simulator

Here is a little experiment of mine. The goal was to simulate something that resembles "drawing with oil paint on a canvas". Make sure to enable "DPI aware" ...have fun! :P ; simple painter ; 02/2024 Mr.L EnableExplicit UseJPEGImageDecoder() UseJPEGImageEncoder() UsePNGImageDecod...
by Mr.L
Sat Dec 09, 2023 8:53 am
Forum: Announcement
Topic: The Ruins of Calaworm (turn-based Dungeon Crawler)
Replies: 17
Views: 2558

Re: The Ruins of Calaworm (turn-based Dungeon Crawler)

Incredible work, very well done! I played it for a while now and had much fun, once I got used to the keyboard layout. I thought i was stuck until I realized, there is diagonal movement too :wink:.
Nice graphics and music too!
by Mr.L
Fri Sep 29, 2023 11:04 am
Forum: Coding Questions
Topic: Using gradient in pie chart
Replies: 7
Views: 342

Re: Using gradient in pie chart

maybe try it this way - and make sure, that current_degree_position.f is a value between 0 and 1.0. current_degree_position.f=0.00 For f=0 To 7 current_degree_percentage.f=ValF(GetGadgetItemText(#LISTICON_WINDOW_SHOW_STATISTICS,f,2)) GradientColor(current_degree_position.f,colour_degree(f)) current_...
by Mr.L
Fri Sep 29, 2023 8:32 am
Forum: Coding Questions
Topic: Using gradient in pie chart
Replies: 7
Views: 342

Re: Using gradient in pie chart

Maybe like this... Macro NextGardient(start_, end_, color_) GradientColor(start_, color_) GradientColor(end_ - 0.0001, color_) EndMacro OpenWindow(0,0,0,250,250,"Pie") CanvasGadget(0,0,0,250,250) StartDrawing(CanvasOutput(0)) DrawingMode(#PB_2DDrawing_Gradient) ConicalGradient(125,125,0) N...
by Mr.L
Fri Sep 29, 2023 6:52 am
Forum: Coding Questions
Topic: How to recognize alphaMeric characters
Replies: 24
Views: 1352

Re: How to recognize alphaMeric characters

...maybe a combination of RegEx and "manual" processing is a better solution. NewList WordsList.s() ; ============================================================ ; Trim code goes here . ; =============================================================== ; a list of characters, that are allo...
by Mr.L
Thu Sep 28, 2023 9:48 pm
Forum: Coding Questions
Topic: How to recognize alphaMeric characters
Replies: 24
Views: 1352

Re: How to recognize alphaMeric characters

Hi, vmars316!
can you explain how it should look?
by Mr.L
Wed Sep 27, 2023 6:16 pm
Forum: Coding Questions
Topic: How to recognize alphaMeric characters
Replies: 24
Views: 1352

Re: How to recognize alphaMeric characters

Hello,
maybe a Regular Expression can help?
greetings

Code: Select all

CreateRegularExpression(0, "\S+")

aLine$ = "   1234   #5678 %10101 $01ac"

ExamineRegularExpression(0, aLine$)
While NextRegularExpressionMatch(0)
	Debug RegularExpressionMatchString(0)
Wend
by Mr.L
Mon Sep 25, 2023 12:41 pm
Forum: Bugs - Windows
Topic: No keydown event for tab on a canvas
Replies: 3
Views: 437

Re: No keydown event for tab on a canvas

To me it is a bug...
It has worked in the previous purebasic version, if you removed the Keyboardshortcut for the tab key after the window has been opened (which makes sense to me).
What has changed in the latest update?

If it's not a bug, there should definitely be an option to detect this key
by Mr.L
Mon Sep 25, 2023 12:33 pm
Forum: Applications - Feedback and Discussion
Topic: PBEdit - a Canvas-based Texteditor
Replies: 103
Views: 31030

Re: PBEdit - a Canvas-based Texteditor

Hi, ❤x1
Unfortunately, since the latest updates, the Tab-key detection for the canvas gadet doesn't work anymore.
I just saw, that you already have written a bug report.