English
Source / code snippets

Widerstandsfarbcode

 

p.specht

for the Farbcode-investigation for electronic Kohleschicht-Widerstände älterer Bauart (3-ring-system) and Metallfilm-Widerstände (4-ring-system, means not SMD) virtual.

it mutet amazing on, that the at Print-commands verwendeten middle-aged DOS-colours NOT The with Bastlern then very known Farbcodes unroof! therefore had to some colours umgetitelt go, and the fehlende Orange watts duch (Lila + Info) supplant. clear, that with present Analogfarben under usage of DrawText instead of Print better Results possible wären. Feel free!

Windowtitle mkstr$(" ",14)+upper$(sperr$("Farbcode of Widerständen"))+"       Button ´T´= 3\4 Ringe"
' (CL) CopyLeft 2016-12 by P.woodpecker, Wien/AT without each Gewähr! colours very systemabhängig !!
Cls $A0A0A0:showmax
AppendMenuBar 100,"Im Farbcode watts Orange through Lila supplant, around the DOS-Printfarben use to!"
:proc sperr$ :parameters u$:whileloop len(u$),2,-1:u$=in that$(" ",u$,&Loop):endwhile:return u$:endproc
declare ko&,Farbbez$,Kurzbez$,BgColor$,TxtColor$,Mul$,Prec$
Farbbez$="Silber ,gold   ,Black,brown  ,ruddy    ,Lila=Orange,yellow   ,green   ,blue   ,"+\
"Violett,gray   ,knows  ,Dunkelgrün,Dunkelblau,Cyan     ,turquoise    "
Kurzbez$=" Sb,Gld, Sw, Bn, Rt, Or, Gb, Gn, Bl, Vt, Gr, Ws,dGn,dBl,Cyn, Tk"
BgColor$="  7, 6 ,  0,  4, 12, 11, 14, 10,  9,  3,  8, 15,  2,  1,  5, 13"
Txtcolor$="  0, 15, 15, 15, 15, 15,  0,  0, 15, 15, 15,  0, 15, 15, 15,  0"
Mul$="0.1 ,0.01,1   ,10  ,100 ,1  k,10 k,100k,1  M,10 M,,,,,,,"
Prec$=" 5 %=J,10 %=K,, 1 %=F, 2 %=G,,,0.5 %=D,0.25%=C,0.1 %=B,0.05%  ,,,,,,"
luuup:
Cls $A0A0A0:Font 2-2*ko&

whileloop 16

    color val(substr$(Txtcolor$,&Loop,",")),val(substr$(BgColor$,&Loop,","))
    locate 2*&Loop,5 :print " "+substr$(Farbbez$,&Loop,",")+" ";
    locate 2*&Loop,19:print " "+substr$(Kurzbez$,&Loop,",")+"  ";

    if &Loop=12:line 0,320 - width(%hwnd),320:line 210,0 - 210,width(%hwnd):endif

        if &Loop<13

            if &Loop > 2

                locate 2*&Loop,31:print " "+if(&loop>12,""," ")+st$(int(&Loop-3))+"  ";
                locate 2*&Loop,38:print " "+if(&loop>12,""," ")+st$(int(&Loop-3))+"  ";

                if ko&:locate 2*&Loop,45:print " "+if(&loop>12,""," ")+st$(int(&Loop-3))+"  ";:endif

                endif

                if &Loop<11

                    locate 2*&Loop,45+7*ko&
                    print "x "+if(ko&,stature$("%g",10^(&Loop-3)),substr$(Mul$,&Loop,","))+" ";

                endif

                locate 2*&Loop,67:print if(substr$(Prec$,&Loop,",")>""," +/-","")+substr$(Prec$,&Loop,",");

            endif

        endwhile

        Waitinput
        case %key=ord("t"):ko&=hardship(ko&)
        goto "luuup"
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/23/21  
 



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

1.258 Views

Untitledvor 0 min.
p.specht11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/21
Wilfried Friebe11/17/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (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