Closed Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: [Release]EGP clock+EGP radar

  1. #21
    Wirererer Maxaxle's Avatar
    Join Date
    Sep 2009
    Posts
    177

    Default Re: [Release]EGP clock+EGP radar

    Quote Originally Posted by Unsmart View Post
    quote my post, and extract code from there -.-

    edit: Iv changed it to code tags, since the new forum just sucks, why did they even update?! Also, the highlight=e2 thing is STILL unfixed.
    Thanks!
    *saves as .txt*
    Still very clueless about code in general.
    92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature.

  2. #22
    Wire Noob meatsauce's Avatar
    Join Date
    Jan 2011
    Posts
    4

    Default Re: [Release]EGP clock+EGP radar

    Any chance of having these updated for egp v3? They were both very useful; especially the radar.
    Last edited by meatsauce; 02-13-2011 at 09:46 PM.

  3. #23
    Wire Amateur Teh Reborn Devil's Avatar
    Join Date
    Jun 2010
    Location
    Norway, Larvik
    Posts
    99

    Default Re: [Release]EGP clock+EGP radar

    -.-
    E2 is awesome <3

  4. #24
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: [Release]EGP clock+EGP radar

    Its a valid point. I could convert it to EGP3 today in about 30 mins. But not the clock, cba to do that.
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

  5. #25
    Wire Noob techtuts's Avatar
    Join Date
    Mar 2010
    Posts
    10

    Default Re: [Release]EGP clock+EGP radar

    Code:
    @name EGP clock
    @inputs W:wirelink 
    @outputs Ratio:vector2 Test Str:string
    @persist Mid Min Hour Sec
    @trigger 
    
    interval(500)
    
    if(first())
    {
        W:egpClear()
        timer("draw",500)
    }
    
    Min = time("min")
        Sec = time("sec")
        Hour = time("hour")
    
    if(clk("draw"))
    {
        
        
        #base
        #edit me
        RatioReal=vec2(1,1)
        RatioReal=clamp(RatioReal,vec2(0.1,0.1),vec2(1.2,1.2))
        
        Size=220
        Size=clamp(Size,10,220)
        Ratio=RatioReal*Size
        Mid=256
        #dont edit me  below
        #base 4 digits
        W:egpBox(12,vec2(Mid-5,Mid-Ratio:x()-5),vec2(10,10))
        W:egpBox(6,vec2(Mid-5,Mid+Ratio:x()-5),vec2(10,10))
        
        W:egpBox(3,vec2(Mid+Ratio:y()-5,Mid-5),vec2(10,10))
        W:egpBox(9,vec2(Mid-Ratio:y()-5,Mid-5),vec2(10,10))
        
        #other
        W:egpBox(1,vec2(Mid-sin(30*11)*Ratio:y()-5,Mid-cos(30*11)*Ratio:x()-5),vec2(10,10))
        W:egpBox(2,vec2(Mid-sin(30*10)*Ratio:y()-5,Mid-cos(30*10)*Ratio:x()-5),vec2(10,10))
        
        W:egpBox(11,vec2(Mid-sin(30*1)*Ratio:y()-5,Mid-cos(30*1)*Ratio:x()-5),vec2(10,10))
        W:egpBox(10,vec2(Mid-sin(30*2)*Ratio:y()-5,Mid-cos(30*2)*Ratio:x()-5),vec2(10,10))
        
        W:egpBox(4,vec2(Mid-sin(30*8)*Ratio:y()-5,Mid-cos(30*8)*Ratio:x()-5),vec2(10,10))
        W:egpBox(5,vec2(Mid-sin(30*7)*Ratio:y()-5,Mid-cos(30*7)*Ratio:x()-5),vec2(10,10))
        
        W:egpBox(8,vec2(Mid-sin(30*4)*Ratio:y()-5,Mid-cos(30*4)*Ratio:x()-5),vec2(10,10))
        W:egpBox(7,vec2(Mid-sin(30*5)*Ratio:y()-5,Mid-cos(30*5)*Ratio:x()-5),vec2(10,10))
        
        #render
     
        timer("hands",100)#max FPs=12 D:
    }
    
    #Hour++ #for server thats GMT+0 and youyr gmt+1
    #Hour=Hour%24
    
    if(clk("hands"))
    {
        
        #hands
        W:egpLine(20,vec2(Mid,Mid),vec2(Mid+1,Mid+1))#sec
        W:egpLine(21,vec2(Mid,Mid),vec2(Mid+1,Mid-1))#min
        W:egpLine(22,vec2(Mid,Mid),vec2(Mid-1,Mid-1))#hour
        
        #digital timed
        Str=""
        if((Hour+""):length()==1){Str+="0"+Hour+":"}else{Str+=""+Hour+":"}
        if((Min+""):length()==1){Str+="0"+Min+":"}else{Str+=""+Min+":"}
        if((Sec+""):length()==1){Str+="0"+Sec}else{Str+=""+Sec}
        W:egpText(23,Str,vec2(Mid-50,Mid+50))#,vec(255,0,0),255)
        
        #circle
       # W:egpCircle(-1,vec2(Mid,Mid),vec2(100,100))
        
        
        
     
    }
    
    #clock is only 12 hours!
    if(Hour>12){Test=Hour-12}else{Test=Hour}
    
    W:egpPos(20,vec2(Mid-cos((Sec+15)*(360/60))*Ratio:y(),Mid-sin((Sec+15)*(360/60))*Ratio:x()))
    W:egpPos(21,vec2(Mid-cos((Min+15)*(360/60))*Ratio:y(),Mid-sin((Min+15)*(360/60))*Ratio:x()))
    W:egpPos(22,vec2(Mid-cos((Test+3)*(360/12))*Ratio:y(),Mid-sin((Test+3)*(360/12))*Ratio:x()))
    
    
    Str=""
        if((Hour+""):length()==1){Str+="0"+Hour+":"}else{Str+=""+Hour+":"}
        if((Min+""):length()==1){Str+="0"+Min+":"}else{Str+=""+Min+":"}
        if((Sec+""):length()==1){Str+="0"+Sec}else{Str+=""+Sec}
        W:egpText(23,Str,vec2(Mid-50,Mid+50))
    You will have to add color

  6. #26
    Wire Noob meatsauce's Avatar
    Join Date
    Jan 2011
    Posts
    4

    Default Re: [Release]EGP clock+EGP radar

    Quote Originally Posted by Unsmart View Post
    Its a valid point. I could convert it to EGP3 today in about 30 mins. But not the clock, cba to do that.
    The radar is by-far the most useful! Thanks.

  7. #27
    Wirererer userman122's Avatar
    Join Date
    Mar 2010
    Location
    Norway
    Posts
    179

    Default Re: [Release]EGP clock+EGP radar

    Quote Originally Posted by Azrael View Post
    EGP is an unofficial addon for E2 that lets you draw to screens like it's a GPU, only it's controlled directly from E2 with a special set of functions.
    Is it UNOFFICAL?

  8. #28
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: [Release]EGP clock+EGP radar

    Quote Originally Posted by userman122 View Post
    Is it UNOFFICAL?
    Read the date.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  9. #29
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: [Release]EGP clock+EGP radar

    Quote Originally Posted by userman122 View Post
    Is it UNOFFICAL?
    its now part of wiremod SVN
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

  10. #30
    Wire Noob meatsauce's Avatar
    Join Date
    Jan 2011
    Posts
    4

    Default Re: [Release]EGP clock+EGP radar

    EGP is awesome. I've gotten better with drawing things out, but still learning some of the action aspects of the displays.

    I'm trying to teach myself by rewriting the radar for egp3 ...not working out so good though.

Closed Thread
Page 3 of 4 FirstFirst 1234 LastLast

LinkBacks (?)

  1. 01-27-2010, 03:13 PM

Similar Threads

  1. [Release] Balls of Steel (Re-release)
    By Moglizorz in forum Finished contraptions
    Replies: 95
    Last Post: 09-05-2010, 02:30 PM
  2. [Release] Holographic Digital Clock
    By Moglizorz in forum Finished contraptions
    Replies: 1
    Last Post: 08-09-2009, 10:38 AM
  3. ZP's Phys Clock
    By F12Bwth in forum Finished contraptions
    Replies: 12
    Last Post: 06-25-2008, 11:00 AM
  4. Binary Clock?
    By timas in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 05-12-2007, 11:30 AM
  5. Clock chip
    By HL-SDK in forum Ideas & Suggestions
    Replies: 13
    Last Post: 04-02-2007, 01:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots