Discussion forum about PANORAMIC language
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Discussion forum about PANORAMIC language

Mac, Windows & Android application development with PANORAMIC language
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Latest topics
» What happened with the panoramic language ?
by Wed Jan 03, 2024 4:09 pm

» Hello world.
by Wed May 09, 2018 11:53 pm

» Biomorphes de PICKOVER
by Sun Jun 18, 2017 2:33 am

» In less than 10 lines of code
by Fri Jun 16, 2017 5:03 am

» Effect Dopler
by Fri Jun 16, 2017 3:29 am

» SuperEllipse
by Wed Jun 14, 2017 4:01 am

» Plants
by Wed Jun 14, 2017 3:38 am

» Mira's attractor
by Wed Jun 14, 2017 3:30 am

» Triangle of Sierpinski
by Wed Jun 14, 2017 3:22 am

» Esthétique polaire
by Wed Jun 14, 2017 3:16 am

» Butterfly effect : Lorenz equations
by Wed Jun 14, 2017 3:08 am

» Collision detection
by Tue Jun 13, 2017 5:09 am

» The Bees Laline Paull Epub Books
by Mon Oct 10, 2016 8:58 pm

» PANORAMIC for Mac OSX 10 is available
by Tue Aug 09, 2016 6:08 pm

» ide
by Sat Jul 16, 2016 12:27 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

 

 to write or draw with the mouse

Go down 
AuthorMessage
bignono

bignono


Number of posts : 11
Age : 66
Localisation : Champigny-sur-Marne, 94500, France
Registration date : 2013-03-12

to write or draw with the mouse Empty
PostSubject: to write or draw with the mouse   to write or draw with the mouse EmptySat Mar 16, 2013 10:11 am

Bonjour à tous, Amis de langue anglaise,
Voici un petit code qui vous montre comment écrire ou dessiner avec la souris! J'espère que cette astuce vous sera utile.
Je suis français et j'utilise le traducteur en ligne babylon, donc veuillez m'excuser si la traduction est mauvaise. Néanmoins, j'espère que vous aurez compris mon message.
A bientôt.

Hello everyone, Friends of English language, Very Happy
Here a small code which shows you how to write or draw with the mouse! I hope that this tip will be useful for you.
I am French and I use the translator online babylon, therefore want to excuse me if the translation is bad. Nevertheless, I hope that you will have understood my message.
So long. Wink Wink Wink
Code:
dim xd,yd,xf,yf
label  write
timer 99:timer_interval 99,1:on_timer 99,write
end

write:
timer_off 99:if mouse_left_down(0)=0 then timer_on 99:return
xd=mouse_x_left_down(0):yd=mouse_y_left_down(0)
while mouse_left_up(0)=0
    xf=mouse_x_position(0):yf=mouse_y_position(0)
    2d_line xd,yd,xf,yf:xd=xf:yd=yf
end_while
timer_on 99
return
Back to top Go down
bignono

bignono


Number of posts : 11
Age : 66
Localisation : Champigny-sur-Marne, 94500, France
Registration date : 2013-03-12

to write or draw with the mouse Empty
PostSubject: Re: to write or draw with the mouse   to write or draw with the mouse EmptySat Mar 16, 2013 10:21 am

If you do not understand the code, or if you have questions, do not hesitate. This forum is there for that!
You can also come to take part on the French forum which is more active. There will be certainly always somebody to answer you.
Back to top Go down
 
to write or draw with the mouse
Back to top 
Page 1 of 1
 Similar topics
-
» Panoramic Draw
» Draw a forest
» Write MIDI file

Permissions in this forum:You cannot reply to topics in this forum
Discussion forum about PANORAMIC language :: Panoramic for Windows :: Source code (snippets)-
Jump to: