opengl20面体#include#defineX.525731112119133606#defineZ.850650808352039932staticGLfloatvdata[12][3]={//各顶点坐标{-X,0.0,Z},{X,0.0,Z},{-X,0.0,-Z},{X,0.0,-Z},{0.0,Z,X},{0.0,Z,-X},{0.0,-Z,X},{0.0,-Z,-X},{Z,X,0.0},{-Z,X,0.0},{Z,-X,0.0},{-Z,-X,0.0},};staticGLuinttindices[20][3]={//构成各面(三角形)的顶点索引{1,4,0},{4,9,0},{4,5,9},{8,5,4},{1,8,4},{1,10,8},{10,3,8},{8,3,5},{3,2,5},{3,7,2},{3,10,7},{10,6,7},{6,11,7},{6,0,11},{6,1,0},{10,1,6},{11,0,9},{2,11,9},{5,2,9},{11,2,7},};voiddisplay(){glClear(GL_COLOR_BUFFER_BIT);glBegin(GL_TRIANGLES);for(inti=0;i<20;++i){glColor3f(1.0,1.0,i*1.0/20);//颜色设置glVertex3fv(&vdata;[tindices[i][0]][0]);glVertex3fv(&vdata;[tindices[i][1]][0]);glVertex3fv(&vdata;[tindices[i][2]][0]);}glEnd();glFlush();}voidinit(){glClearColor(0.0,0.0,0.0,0.0);}intmain(intargc,char**argv){glutInit(&argc;,argv);glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);glutInitWindowSize(250,250);glutInitWindowPosition(100,100);glutCreateWindow("Polygon");init();glutDisplayFunc(display);glutMainLoop();return0;}
2024/6/21 7:15:38 749B opengl 20面体
1
CSS自定义绘画/绘画工作集polyfill一个polyfill,它将Houdini的和PaintWorklets带到所有现代浏览器(Edge,Firefox,Safari和Chrome)。
在Firefox和Safari中,性能特别好,其中该polyfill利用-webkit-canvas()和-moz-element()来优化渲染。
对于其他浏览器,帧速toDataURL()CanvastoDataURL()/toBlob()速度控制。
从版本3开始,此CSS.supports()还包括CSS.supports(),CSS.registerProperty()和CSS
2024/5/3 9:02:17 24KB css polyfill houdini css-paint-api
1
unityodin3.0.1
2024/5/2 8:56:47 2.79MB unity3d
1
题目:java拼图游戏姓名学号指导教师(签名)二○一一年七月十四日java拼图游戏[摘要]• 进一步加深对Java语言的理解和掌握:将所学的JAVA知识运用于实践中。
• 课程设计将理论与实践相结合,提供了一个既动手又动脑,独立实践的机会,锻炼我们的分析解决实际问题的能力,提高学生适应实际,实践编程的能力;• 熟练掌握JAVA语言中图形用户界面程序的编写;大体了解怎样用JAVA来编写小游戏的,增强我们实践能力和创新精神的综合培养。
前言编程思路:本练习因为要制作拼图游戏,所以首先要实现图片的导入。
这是通过getImage()函数来实现的,该函数有两个参数,第一个参数指明图片的路径,第二个参数指明图片的名称。
然后,因为要实现图片摆放的随意性,所以要通过initgame()函数来实现。
Initgame()函数是自写函数,在函数体内,通过调用Math.random()函数产生随机数,用来达到图片位置摆放的随意性和随机性。
最后,因为要实现人机交互.,所以首先要通过一系列函数来实现对鼠标事件的监听和响应,这是通过函数addMouseListener(this)和addMouseMotionListener(this)来完成的。
这样程序会区分用户对鼠标不同的操作,正确执行相应的功能。
//首先是程序实现及注释importjava.awt.*;importjava.applet.*;importjava.awt.event.*;publicclasspintuextendsApplet implementsMouseListener,MouseMotionListener{ privateImagepicture; privateGraphicsbuffer; privateImagepic[]; privateImageoff_pic[]; privateGraphicsoff_buf[]; privateImageoff_screen; privateGraphicsoff_buffer; privateImageoff_drag; privateGraphicsoff_drag_buf; privateintmap[][]; privateintran[]; privateintwidth=0; privateintheight=0; privateintlastx; privateintlasty; privateintlast_downx; privateintlast_downy; privateintstepx; privateintstepy; privatebooleanchoose; privatebooleanclick[][]; privatebooleanm_down; privatebooleanm_drag; privatebooleannot_redraw; privatebooleanable; Fontfont1,font2; //程序的初始化 publicvoidinit() {
2024/3/20 15:44:49 799KB java j2ee 课程设计报告
1
C#.net实现学生成绩管理系统namespace学生成绩管理系统{partialclassFormlogin{//////必需的设计器变量。
///privateSystem.ComponentModel.IContainercomponents=null;//////清理所有正在使用的资源。
//////如果应释放托管资源,为true;
否则为false。
protectedoverridevoidDispose(booldisposing){if(disposing&&(components!=null)){components.Dispose();}base.Dispose(disposing);}#regionWindows窗体设计器生成的代码//////设计器支持所需的方法-不要///使用代码编辑器修改此方法的内容。
///privatevoidInitializeComponent(){this.labeluser=newSystem.Windows.Forms.Label();this.textBoxuser=newSystem.Windows.Forms.TextBox();this.labelcode=newSystem.Windows.Forms.Label();this.textBoxcode=newSystem.Windows.Forms.TextBox();this.buttonin=newSystem.Windows.Forms.Button();this.buttonout=newSystem.Windows.Forms.Button();this.SuspendLayout();////labeluser//this.labeluser.Font=newSystem.Drawing.Font("宋体",10.5F,System.Drawing.FontStyle.Regular,System.Drawing.GraphicsUnit.Point,((byte)(134)));this.labeluser.Location=newSystem.Drawing.Point(31,50);this.labeluser.Name="labeluser";this.labeluser.Size=newSystem.Drawing.Size(55,26);this.labeluser.TabIndex=0;this.labeluser.Text="用户名";this.labeluser.TextAlign=System.Drawing.ContentAlignment.MiddleCenter;////textBoxuser//this.textBoxuser.Location=newSystem.Drawing.Point(126,55);this.textBoxuser.Name="textBoxuser";this.textBoxuser.Size=newSystem.Drawing.S
2024/3/13 12:24:54 257KB 学生成绩管理系统(C#)
1
#include#defineucharunsignedchar#defineuintunsignedint#defineulongunsignedlong#defineLED_DATP0sbitLED_SEG0=P2^7;sbitLED_SEG1=P2^6;sbitLED_SEG2=P2^5;sbitLED_SEG3=P2^4;#defineTIME_CYLC100//12M晶振,定时器10ms中断一次我们1秒计算一次转速//1000ms/10ms=100#definePLUS_PER10//码盘的齿数,这里假定码盘上有10个齿,即传感器检测到10个脉冲,认为1圈#defineK1.65//校准系数unsignedcharcodetable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};uchardataDisbuf[4];//显示缓冲区uintTcounter=0;//时间计数器bitFlag_Fresh=0;//刷新标志bitFlag_clac=0;//计算转速标志bitFlag_Err=0;//超量程标志voidDisplayFresh();//在数码管上显示一个四位数voidClacSpeed();//计算转速,并把结果放入数码管缓冲区voidinit_timer();//初始化定时器T0\T1voidDelay(uintms);//延时函数voidit_timer0()interrupt1/*interruptaddressis0x000b*/{TF0=0;//定时器T0用于数码管的动态刷新TH0=0xC0;TL0=0x00;Flag_Fresh=1;Tcounter++;if(Tcounter>TIME_CYLC){Flag_clac=1;//周期到,该重新计算转速了}}voidit_timer1()interrupt3/*interruptaddressis0x001b*/{TF1=0;//定时器T1用于单位时间内收到的脉冲数//要速度不是很快,T1永远不会益处Flag_Err=1;//如果速度很高,我们应考虑另外一种测速方法:T测速法}voidmain(void){Disbuf[0]=0;//开机时,初始化为0000Disbuf[1]=0;Disbuf[2]=0;Disbuf[3]=0;init_timer();while(1){if(Flag_Fresh){Flag_Fresh=0;DisplayFresh();//定时刷新数码管显示}if(Flag_clac){Flag_clac=0;ClacSpeed();//计算转速,并把结果放入数码管缓冲区Tcounter=0;//周期定时清零TH1=TL1=0x00;//脉冲计数清零}if(Flag_Err)//超量程处理{Disbuf[0]=0x9e;//开机时,初始化为0000Disbuf[1]=0x9e;Disbuf[2]=0x9e;Disbuf[3]=0x9e;while(1){DisplayFresh();//不再测速等待复位i}}}}//在数码管上显示一个四位数voidDisplayFresh(){P2|=0xF0;LED_SEG0=0;LED_DAT=table[Disbuf[0]];Delay(1);P2|=0xF0;LED_SEG1=0;LED_DAT=table[Disbuf[1]];Delay(1);P2|=0xF0;LED_SEG2=0;LED_DAT=table[Disbuf[2]];Delay(1);P2|=0xF0;LED_SEG3=0;LED_DAT=table[Disbuf[3]];Delay(1);P2|=0xF0;}//计算转速,并
2024/3/2 19:19:54 400KB 光电传感器、测速、protus、pcb
1
经典beamforming、自适应滤波教材matlab源代码。
PauloS.R.Diniz编著的自适应滤波第四版(AdaptiveFiltering_AlgorithmsandPracticalImplementation4th),源代码——Nonlinear_Adaptive_Filters
2024/2/26 15:04:21 8KB Beamforming Adaptive Fil Nonlinear_Ad
1
Don'tMakeMeThink第3版英文版文字版全彩色觉得好请留评论DontmakemeThinkRevisitedACommonSenseapproachtoWebUsabilityCopyrighto2014SteveKrugNewriderswww.newniders.comToreporterrorspleasesendanotetoerrata@peachpit.comNewridersisanimprintofpeachpitadivisionofpearsoneducationEditor:ElisabethbayleProjecteditor:NancyDavisProductioneditor:lisabraziealCopyEditorBarbaraFlanaganInteriorDesignandComposition:RomneyLangeIllustrationsbymarkMatchaandMimiHeftFarnhamfontsprovidedbyTheFontbureauInc.(www.fontbureau.comNoticeofRightsAllrightsreservedNopartofthisbookmaybereproducedortransmittedinanyformbyanymeans,electronic,mechanical,photocopying,recording,orotherwise,withoutthepriorwrittenpermissionofthepublisher.Forinformationongettingpermissionforreprintsandexcerpts,contactpermissions@peachpit.comNoticeofliabilityTheinformationinthisbookisdistributedonan"asisbasiswithoutwarranty.whilileeveryprecautionhasbeentakeninthepreparationofthebook,neithertheauthornorPeachpitshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinstructionscontainedinthisbookorbythecomputersoftwareandhardwareproductsdescribedinittrademarksItsnotrocketsurgeryisatrademarkofStevekrugManyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andpeachpitwasawareofatrademarkclaim,thedesignationsappearasrequestedbytheownerofthetrademark.allotherproductnamesandservicesidentifiedthroughoutthisbookareusedineditorialfashiononlyandforthebenefitofsuchcompanieswithnointentionofinfringementofthetrademark.Nosuchuse,ortheuseofanytradename,isintendedtoconveyendorsementorotheraffiliationwiththisbookISBN-13:978-0-32196551-6ISBN-10:0-321-96551-5987654321PrintedandboundintheunitedstatesofamericaFirsteditionTomyfather,whoalwayswantedmetowriteabook,Mymother,whoalwaysmademefeellikeIcouldMelanie,whomarriedme-thegreateststrokeofgoodfortuneofmylifeandmyson,Harry,whowillsurelywritebooksmuchbetterthanthisonewheneverhewantstoSecondeditionTomybigbrother,Phil,whowasamenschhiswholelifeThirdeditionToallthepeoplefromallpartsoftheworld--whohavebeensoniceaboutthisbookforfourteenyears.Yourkindwords--inperson,inemail,andinyourblogs-havebeenoneofthegreatjoysofmylifeEspeciallythewomanwhosaiditmadeherlaughsohardthatmilkcameoutheofhernoseContentsPREFACEAboutthiseditionINTRODUCTIONReadmefirstThroatclearinganddisclaimersGUIDINGPRINCIPLESCHAPTER1Dontmakemethink!Krug'sFirstLawofusabilityCHAPTER2HowwereallyusethewebScanning,satisficing,andmuddlingthroughCHAPTER3.BillboardDesign101Designingforscanning,notreadingCHAPTER4.AnimaL,Vegetable,orMineral?WhyuserslikemindlesschoicesCHAPTER5OmitneedlesswordsTheartofnotwritingfortheWebTHINGSYOUNEEDTOGETRIGHTCHAPTER6.StreetsignsandBreadcrumbsDesigningnavigationCHAPTERZTheBigBangTheoryofWebDesignTheimportanceofgettingpeopleoffontherightfootMAKINGSUREYOUGOTTHEMRIGHTCHAPTER8Thefarmerandthecowmanshouldbefriends>Whymostargumentsaboutusabilityareawasteoftime,andhowtoavoidthemChAPTER9.USabilitytestingon10centsadayKeepingtestingsimple--soyoudoenoughofitLARGERCONCERNSANDOUTSIDEINFLUENCESCHAPTER10MObile:It'snotjustacityinAlabamaanymoreWelcometothe21stCentury.YoumayexperienceaslightsenseofvertigoCHAPTER11UsabilityascommoncourtesyWhyyourWebsiteshouldbeamenschCHAPTER12.AccessibilityandyouJustwhenyouthinkyouredone,acatfloatsbywithbutteredtoaststrappedtoitsbackCHAPTER13GuidefortheperplexedMakingusabilityhappenwhereyouliveAcknowledgmentsIndexPreface:aboutthiseditionPeoplecomeandgosoquicklyhere!DOROTHYGALEJUDYGARLAND)INTHEWIZARDOFOZ(1939)Iwrotethefirsteditionofdon'tmakemethinkbackin2000By2002,Ibegantogetafewemailsayearfromreadersasking(verypolitely)ifI'dthoughtaboutupdatingit.Notcomplaining,justtryingtobehelpful."alotoftheexamplesareoutofdate"wastheusualcommentMystandardresponsewastopointoutthatsinceiwroteitrightaroundthetimetheinternetbubbleburstmanyofthesitesiusedasexampleshadalreadydisappearedbythetimeitwaspublishedButIdidn'tthinkthatmadetheexamplesanylessclear.Finally,in2006Ihadastrongpersonalincentivetoupdateit.ButasIrereadittoseewhatIshouldchange,Ijustkeptthinking"Thisisallstilltrue>Ireallycouldn'tfindmuchofanythingthatithoughtshouldbechangedHalfoftheroyaltiesforthebookweregoingtoacompanythatnolongerexisted,anddoinganeweditionmeantanewcontractandtwicetheroyalties-formeIfitwasanewedition,though,somethinghadtobedifferent.SoIaddedthreechaptersthatididn'thavetimetofinishbackin2000,hitthesnoozebutton,andhappilypulledthecoversbackovermyheadforanothersevenyearsSteveKrugACommonSenseApproachtoWebUsabilityFOREWORDBYROGERBLACK2000SteveKrugTHINKACommonSenseApproachtoWebUsabilitySECONDEDITION2006WRitingisreallyhardforme,andI'malwayshappytohaveareasonnottodoit.GivemeagoodoldrootcanaloverwritinganydaySowhynowfinallyanewedition?Tworeasons#1。
Let’sfaceit:It'soldThere'snodoubtaboutitatthispoint:Itfeelsdated.Afterall,it'sthirteenyearsold,whichislikeahundredyearsinInternettime.(See?Nobodyevensaysthingslike"inInternettimeanymoreMostofthewebpagesiusedforexamples,likeSenatorOrrinHatch'scampaignsiteforthe2000electionlookreallyold-fashionednowSitesthesedaystendtolookalotmoresophisticated,asyoumightexpectPRENIDEN'TWWw.\TOCiTheRepublicans:ANewHampshireForumTheDec2DebateThefirstakeahddyeGoPdebyetesThursdayheatsupthepoltcalstylewarsaSenatorHatchfightstokeepsubstancenCampaign2000.EVLLSTORYTheExperiencedCandidateLw警mHatchCampaign2000BeneoiceThatMatters!ClickheretoCONTRIBUTECAMPAIGNNEWSlIVESCONTIRIHIUTORLINTsCOILINKS)LUNTEEILThieRar4每MCICK2cpM(.DisHachPre的d时Ceme,ntP0.00多』LC,UT0403nTERNETANDNTwoRxsaunaSwww.orrinhatch.com1999
2024/2/20 3:09:52 14.47MB Don't Make Me Think
1
Golang和PostgreSQLSQL迁移该软件包允许您使用在PostgreSQL数据库上运行迁移。
有关详细信息,请参见。
您可能还需要在做出决定之前检查。
安装go-pg/migrations需要具有支持的Go版本,并使用导入路径版本控制。
因此,请确保初始化Go模块:gomodinitgithub.com/my/repogogetgithub.com/go-pg/migrations/v8用法要在您的项目上运行迁移,您应该执行以下步骤:定义迁移列表;
实施调用迁移工具的可执行应用程序;
运行迁移。
定义迁移迁移文件您可以将SQL迁移文件与m
2024/2/15 14:22:12 23KB go golang dat database
1
050325-S6D0133RecommendedInitialSequencever0_0.pdf
2024/2/11 0:05:43 14KB tftp
1
共 52 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡