thanks,
it seems more complicated than I thought.
Maybe better to make 2 layout for 2 screen resolutions
Search found 154 matches
- Tue Jun 18, 2024 7:26 pm
- Forum: Coding Questions
- Topic: screenresolution
- Replies: 4
- Views: 724
- Tue Jun 18, 2024 9:20 am
- Forum: Coding Questions
- Topic: screenresolution
- Replies: 4
- Views: 724
screenresolution
I have a screen with many gadgets and a drawing on canvas gadget created for a resolution of 1360x768, how can I rescale this to a resolution of 1920x1080.
Do I have to calculate the size, position and text for each gadget, or is there an easier way?
Do I have to calculate the size, position and text for each gadget, or is there an easier way?
- Tue Oct 10, 2023 9:42 am
- Forum: Coding Questions
- Topic: draw lines slow
- Replies: 6
- Views: 786
Re: draw lines slow
thanks ,it works
- Tue Oct 10, 2023 8:17 am
- Forum: Coding Questions
- Topic: draw lines slow
- Replies: 6
- Views: 786
Re: draw lines slow
StartDrawing(CanvasOutput(#canvas1))
For n=7 To aantal_lijnen
lijn$=GetGadgetItemText (#list1,n) ;Gcode line ,coordinates lines ect..
;Debug lijn$
ontrafel() ;find the start and end off the lines
y2=180+(x_new *xpix_mm):x2=680+(zpix_mm * z_new );new endposition
LineXY(x1,y1,x2,y2,kleur ...
- Mon Oct 09, 2023 2:50 pm
- Forum: Coding Questions
- Topic: draw lines slow
- Replies: 6
- Views: 786
draw lines slow
How can I draw lines slow in a for next loop ,I try delay but this will not work
- Wed Jun 16, 2021 3:42 pm
- Forum: Off Topic
- Topic: What are you working on?
- Replies: 57
- Views: 42098
Re: What are you working on?
Hello,
I try to make wizards for my hobby cnc lathe. Just to learn something with purebasic.
I try to make wizards for my hobby cnc lathe. Just to learn something with purebasic.
- Wed May 19, 2021 8:32 pm
- Forum: Coding Questions
- Topic: calculate center of arc
- Replies: 5
- Views: 1530
Re: calculate center of arc
infratec thanks,I know that there are 2 solutions.
Now I can try to find the start and end angle of the arc.
Maybe I can ask you this, too.
Now I can try to find the start and end angle of the arc.
Maybe I can ask you this, too.
- Wed May 19, 2021 8:35 am
- Forum: Coding Questions
- Topic: calculate center of arc
- Replies: 5
- Views: 1530
calculate center of arc
I've been trying for a while to find a way to calculate the center of an arc, but I can't get out, maybe there's a mathematical genius.
I have the startpoint X1,Y1 the endpoint X2,Y2 and the radius R ,I need the centerpoint XC,YC .
The arc can be in one or more quadrants.
I have the startpoint X1,Y1 the endpoint X2,Y2 and the radius R ,I need the centerpoint XC,YC .
The arc can be in one or more quadrants.
- Tue May 18, 2021 8:58 am
- Forum: 3D Programming
- Topic: Demo 3D - Cave v3
- Replies: 14
- Views: 8542
Re: Demo 3D - Cave v3
Hello,
I try to run this demo ,but I see only a white screen.What am I doing wrong?
I tried it with pB 32 and 64bit version 5.73.
I try to run this demo ,but I see only a white screen.What am I doing wrong?
I tried it with pB 32 and 64bit version 5.73.
- Sat Feb 06, 2021 7:44 pm
- Forum: Tricks 'n' Tips
- Topic: A little bit of 3D in a code shorter than 200 lines
- Replies: 14
- Views: 7340
Re: A little bit of 3D in a code shorter than 200 lines
infratec
Thanks for that great example ,but can you explain
Rotation(axe\I#a, axe\I#b, Cos, Sin)
What means I#a and I#b ?
I suppose somthing with the macros ?
Thanks for that great example ,but can you explain
Rotation(axe\I#a, axe\I#b, Cos, Sin)
What means I#a and I#b ?
I suppose somthing with the macros ?
- Sun Jan 24, 2021 6:33 pm
- Forum: 3D Programming
- Topic: draw a 3D arc
- Replies: 14
- Views: 4762
Re: draw a 3D arc
Olli, it seems more difficult than I thought.
You're using terms I've never heard of. Euler referency and Hamilton referency (quaternion).
I just thought to find some formulas and fill in the variables and done.
I think it is too ambitious for me
You're using terms I've never heard of. Euler referency and Hamilton referency (quaternion).
I just thought to find some formulas and fill in the variables and done.
I think it is too ambitious for me
- Sat Jan 23, 2021 9:47 pm
- Forum: 3D Programming
- Topic: draw a 3D arc
- Replies: 14
- Views: 4762
Re: draw a 3D arc
thanks,I found this:
Ollivier
Post subject:PostPosted: Tue Aug 28, 2007 10:53 pm
InitSprite()
InitKeyboard()
OpenScreen(1024, 768, 32, "x")
;***********
R.F = 100.0
Xtheta.F = 0.0
Ytheta.F = 0.0
Ztheta.F = 0.0
Ttheta.F = 0.0
;***********
Repeat
StartDrawing(ScreenOutput() )
Box(0 ...
Ollivier
Post subject:PostPosted: Tue Aug 28, 2007 10:53 pm
InitSprite()
InitKeyboard()
OpenScreen(1024, 768, 32, "x")
;***********
R.F = 100.0
Xtheta.F = 0.0
Ytheta.F = 0.0
Ztheta.F = 0.0
Ttheta.F = 0.0
;***********
Repeat
StartDrawing(ScreenOutput() )
Box(0 ...
- Sat Jan 23, 2021 8:45 am
- Forum: 3D Programming
- Topic: draw a 3D arc
- Replies: 14
- Views: 4762
draw a 3D arc
how to draw a 3D arc ,startpoint,endpoint ,radius are known.
how to draw a 3D arc ,startpoint,endpoint ,startradius and endradius are known.
And how to rotate this around x,y,z axis ?
how to draw a 3D arc ,startpoint,endpoint ,startradius and endradius are known.
And how to rotate this around x,y,z axis ?
- Mon Jan 18, 2021 9:23 am
- Forum: Coding Questions
- Topic: InputRequester() 2 lines text ?
- Replies: 9
- Views: 2604
Re: InputRequester() 2 lines text ?
Hello ,as a beginner I try to understand the code .
I have a problem if one just places numbers for the gadgets instead of giving it a recognizable name,I've adjusted it a bit to my taste.
Enumeration
#main_window;0
#container ;10
#txt_title ;11
#txt_question;12
#str_def ;13
#btn_ok ;14 ...
I have a problem if one just places numbers for the gadgets instead of giving it a recognizable name,I've adjusted it a bit to my taste.
Enumeration
#main_window;0
#container ;10
#txt_title ;11
#txt_question;12
#str_def ;13
#btn_ok ;14 ...
- Sat Jan 02, 2021 10:10 pm
- Forum: Coding Questions
- Topic: how is a string terminated ?
- Replies: 26
- Views: 4809
Re: how is a string terminated ?
I always want to make it as simple and as fast as possible.
I like the code from NicTheQuick,but I also want to thank the others for their thinking.
EnableExplicit
Define text.s = "Hello World"
Define kar.s
Define *c.Character = @text
While *c\c
; Debug *c\c ; 87=W
kar.s= Chr(*c\c);instead of ...
I like the code from NicTheQuick,but I also want to thank the others for their thinking.
EnableExplicit
Define text.s = "Hello World"
Define kar.s
Define *c.Character = @text
While *c\c
; Debug *c\c ; 87=W
kar.s= Chr(*c\c);instead of ...