English
Source / code snippets

Pillar columns draw Zylinder

 
Gerhard Praher
Hello and lovely day from Österreich !
I have a question: I need a Program the one with simply columns (Zylinder) draw can - no Diagramme, separate spare anordenbar. knows someone of you so one Program ?

CompileMarkSeparation
 {$cleq}
cls
showMax

do {

    myPillar(rnd(maxx-100),rnd(maxy),rnd(150))
    copyBmp 1,0 - maxx,maxy > 0,0;0

}

end

myPillar(long x,y,h){

    usepen 0,,0
    useBrush 1,$AAAAAA
    rectangle x,y+5 - x+20,y+5+h
    ellipse x,y+h - x+20,y+10+h
    usePen 5,,0
    rectangle 1+x,y+5 - x+20,y+5+h
    usepen 0,,0
    ellipse x,y - x+20,y+10

r=#0000FF>}

 
09/03/08  
 




Gerhard
Praher
Vielen Thanks !

so GEHTS too.

Gerhard
 
Windows XP Pro, SP3
Jetzt: XProfan 11
Was ich liebe sind 3 "F": meine Familie, meine Firma, meine Freizeit.
09/03/08  
 




KHR
could myself too well use,

habs therefore straight in profane umgestrickt and same yet motley made
CompileMarkSeparation
cls
showMax
declare a1&, a2&,a3&

whilenot 0

    a1& = @rnd(%maxx-100)
    a2& = @rnd(%maxy)
    a3& = @rnd(150)
    myPillar a1&,a2&,a3&, @rgb( @rnd(255),@rnd(255),@rnd(255) )
    copyBmp 1,0 - %maxx,%maxy > 0,0;0

endwhile

end

proc myPillar

    parameters  x&,y&,h& , c&
    usepen 0,1,0
    useBrush 1,$AAAAAA
    useBrush 1,c&
    rectangle x&,(y&+5) - (x&+20),(y&+5+h&)
    ellipse (x&),(y&+h&) - (x&+20),(y&+10+h&)
    usePen 5,1,0
    rectangle (1+x&),(y&+5) - (x&+20),(y&+5+h&)
    usepen 0,1,0
    ellipse x&,y& - (x&+20),(y&+10)

endproc

 
Gruß
Karl-Heinz
WIN XP home/Pro / XPROFAN 11 / P2CPP
ATMEL + BASCOM Fan
02/04/09  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.900 Views

Untitledvor 0 min.
Frank04/16/21
Peter Max Müller11/14/17
H.Brill04/01/15

Themeninformationen

this Topic has 3 subscriber:

KHR (1x)
Gerhard Praher (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie