Anyone know how to make a lazer writer?
Author 
Message 
DaveAngus

Posted: Tue Mar 18, 2008 9:20 am Post subject: Anyone know how to make a lazer writer? 


Hey.
I am just wondering if anyone here knows how to create a lazer that writes out any given word/letter.
I am wanting to use that idea for an assignment and I need some help with it.
If anyone could help me out it would be much appreciated!
Thanks a lot,
Dave 





Sponsor Sponsor



petree08

Posted: Tue Mar 18, 2008 9:23 am Post subject: RE:Anyone know how to make a lazer writer? 


???? draline? perhaps. kinda vauge question 





DaveAngus





BigBear

Posted: Tue Mar 18, 2008 2:04 pm Post subject: Re: Anyone know how to make a lazer writer? 


If you are talking about the black square at the bottom of the page (sorry if you are not) then you just draw a line on the screen then another one a little bit bigger then for the laser part draw a line from the other end of the laser (always a fixed point) then the other end has the same coordinates to the moving end of the horizontal line. IT should end up something like this
code: 
main loop
adjust x value of horizontal line bigger
draw horizontal line
draw laser part from fixed point to left side of horizontal line
end loop

Hope this helps. 





DaveAngus

Posted: Wed Mar 19, 2008 8:47 am Post subject: Re: Anyone know how to make a lazer writer? 


BigBear @ Tue Mar 18, 2008 2:04 pm wrote: If you are talking about the black square at the bottom of the page (sorry if you are not) then you just draw a line on the screen then another one a little bit bigger then for the laser part draw a line from the other end of the laser (always a fixed point) then the other end has the same coordinates to the moving end of the horizontal line. IT should end up something like this
code: 
main loop
adjust x value of horizontal line bigger
draw horizontal line
draw laser part from fixed point to left side of horizontal line
end loop

Hope this helps.
Thanks bigbear.
Helped a lot! 





Carey

Posted: Wed Mar 19, 2008 2:23 pm Post subject: RE:Anyone know how to make a lazer writer? 


can someone move this the Turing Help section please? 





Sean

Posted: Wed Mar 19, 2008 2:30 pm Post subject: Re: Anyone know how to make a lazer writer? 


Whas the red dot in the center, using Draw.FillOval.
Then proceed to drawing a line using a For Loop having the x position of the Draw.Line changing to move across the screen, in such a manner. 





LaZ3R

Posted: Wed Mar 26, 2008 6:05 pm Post subject: Re: Anyone know how to make a lazer writer? 


You're simply drawing a circle in the centre, and drawinga line between a fixed point (The centre), and the point moving towards the left on the x axis.
Therefore, the only value changing is the x value, and therefore in your loop, you just keep subtracting an amount from x, in this case 1
Fairly straight forward.
Now, using this idea, think about how you could draw letters on the screen as the value of x is increasing or decreasing across the screen. 





Sponsor Sponsor



DaveAngus

Posted: Wed Apr 02, 2008 3:47 pm Post subject: Re: Anyone know how to make a lazer writer? 


LaZ3R @ Wed Mar 26, 2008 6:05 pm wrote:
You're simply drawing a circle in the centre, and drawinga line between a fixed point (The centre), and the point moving towards the left on the x axis.
Therefore, the only value changing is the x value, and therefore in your loop, you just keep subtracting an amount from x, in this case 1
Fairly straight forward.
Now, using this idea, think about how you could draw letters on the screen as the value of x is increasing or decreasing across the screen.
thanks a lot!
Helped me a lot!!! 






