gloss

How to install an older version of base in Haskell

爷,独闯天下 提交于 2021-01-27 06:41:31
问题 I have installed Haskell platform and I have the 7.10.3 version of ghci, which has the 4.8.2.0 version of base. I need to install gloss-1.8.* which needs base-4.7.* version of base. My question is how to install this older version now, when I already have the newer version. Is it possible? Or do I have to uninstall the Haskell platform and install an older version? 来源: https://stackoverflow.com/questions/37195188/how-to-install-an-older-version-of-base-in-haskell

How to install an older version of base in Haskell

让人想犯罪 __ 提交于 2021-01-27 06:40:09
问题 I have installed Haskell platform and I have the 7.10.3 version of ghci, which has the 4.8.2.0 version of base. I need to install gloss-1.8.* which needs base-4.7.* version of base. My question is how to install this older version now, when I already have the newer version. Is it possible? Or do I have to uninstall the Haskell platform and install an older version? 来源: https://stackoverflow.com/questions/37195188/how-to-install-an-older-version-of-base-in-haskell

RIMOWA行李箱4大系列、全尺寸整理给你

半城伤御伤魂 提交于 2020-10-31 19:01:27
  想购买RIMOWA却迟迟下不了手吗?看完这篇系列、尺寸整理,就知道最适合自己的行李箱是哪一个! 2016年,德国行李箱霸主RIMOWA正式加入LVMH集团,便开始为RIMOWA进行全方面的改造计划,从标志性Logo改变、重新定位品牌风格、增加联名系列机会,以及为原有的行李箱重新命名,并推出季节限定色系。不知道哪一个系列适合自己,带你简单搞懂RIMOWA 4大系列行李箱区别: 1、Original系列 由原本Topas系列演变而来的Original系列,是以RIMOWA著称的铝镁合金材质打造,配置万向轮Multiwheel及TSA海关锁,是品牌最热卖,同时也是尺寸最齐全的系列。      RIMOWA Original Cabin S in Titanium尺寸:50 x 40 x 20cm (小型) 专为廉价航空打造,可以满足各家航空公司规定 RIMOWA Original Cabin in Marine尺寸:55 x 40 x 23cm(中型)    一般登机箱大小 RIMOWA Original Cabin Plus in Black尺寸:57 x 44 x 25.5cm(大型) RIMOWA Original Check-In M in Silver尺寸:69 x 44 x 27.5cm(3-5日旅行) RIMOWA Original Check-In L in

Shader学习 (十二)使用Unity和UE4实现三个经典光照模型

不想你离开。 提交于 2020-08-14 03:43:48
文中内容主要参考书籍《unity shader入门精要》,作者为冯乐乐。 本文中将会实现三个经典着色模型:Lambert、Phong、Blinn。这些经典的光照模型在大部分早期建模软件中都出现过,其中有一些软件中至今还存在,现在一看到这些光照模型的材质球效果就可以想起那些古旧的电脑界面和Low爆的画面效果以及风扇嘶吼着的破电脑。这些光照模型效果简陋,但是写Shader最应该先理解清楚它们的原理,这些思路在以后的工作中经常需要用到,而且以后的基于物理的看起来高大上的光照模型也都有这些经典光照模型的原理来支持。 需要注意的是,这里的光照模型都是经验模型,在物理上并不一定是正确的。 之前写过,我认为学习一个知识,如果能把这个知识用结构图的方式画出来,会更深刻的理解它的原理和各知识点互相之间的关系。UE4的可视化节点材质编辑器,简称连连看,给展示材质的结构图提供了一个非常好用的工具,所以在本文中我就分别使用UnityShader和UE4材质连连看实现同一个效果。 我学习材质的时候发现UE4的连连看是真的好用,非常直观且浅显易懂,可以实时地查看效果,比敲代码爽很多。尤其是想要换一个光照模式贼几儿方便,不需要修改很多代码,只需要切换几个选项。可以节省你很多敲键盘的时间,用来思考实现效果的方法。 一、一些基础的概念和定义 光源:平行光、环境光、点光源、聚光灯以及其他一些体积光照

haskell random instance of own datatype

别说谁变了你拦得住时间么 提交于 2020-01-15 09:48:08
问题 I am working on an Asteroid game made in Haskell with Graphics.gloss. Now I have defined a datatype for the asteroids like this: data Asteroid = Asteroid { asteroidPos:: Point, asteroidVel :: Vector, asteroidSize :: Float } So that it has a Position defined by a point, a velocity defined by a vector and it's size. Now I want to know how I could write an instance of Random for this datatype so that a new asteroid appears at a random time, on a random place with a random velocity. Does anyone

Reading user mouseclick position in haskells gloss

自闭症网瘾萝莉.ら 提交于 2020-01-06 02:01:36
问题 Edit: So i followed your pointers and got to this point: (following the rules of play) https://hackage.haskell.org/package/gloss-1.9.4.1/docs/Graphics-Gloss-Interface-Pure-Game.html drawBoard :: IO () drawBoard = play (InWindow "Tic Tac Toe" (300,300)(10,10)) yellow 10 board (testBoard) (handleKeys) (iteration) testBoard :: Board -> Picture testBoard board = grid where grid = color black (line [ (-100, -300), (-100, 300) ]) iteration :: Float -> Board -> Board iteration _ board = board

`stack ghci` fails when you include a project which imports Gloss

假装没事ソ 提交于 2019-12-23 18:00:30
问题 If you import Gloss within a Stack project and use stack ghci , you get the following error: GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help <command line>: can't load .so/.DLL for: /Users/v/hs/.stack-work/install/x86_64-osx/lts-3.7/7.10.2/lib/x86_64-osx-ghc-7.10.2/GLUT-2.7.0.3-FFXiDYE1CfiDHjNKroBerv/libHSGLUT-2.7.0.3-FFXiDYE1CfiDHjNKroBerv-ghc7.10.2.dylib (dlopen(/Users/v/hs/.stack-work/install/x86_64-osx/lts-3.7/7.10.2/lib/x86_64-osx-ghc-7.10.2/GLUT-2.7.0.3