This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// identity function | |
func id<T>(_ x: T) -> T { | |
return x | |
} | |
// compositing functions | |
infix operator ∘: MultiplicationPrecedence | |
func ∘<T, U, V> (_ g: @escaping ((U) -> V), _ f: @escaping ((T) -> U)) -> ((T) -> V) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Directive by HTML5 UP | |
html5up.net | @n33co | |
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) | |
*/ | |
(function($) { | |
skel.init({ | |
reset: 'full', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Color; | |
import luxe.Component; | |
import luxe.Sprite; | |
/** | |
* This will set the color of any Sprite to a gradient. | |
* | |
* @author Abel Toy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the Entity at front which collides with the point. | |
* @param x X position | |
* @param y Y position | |
* @return The Entity at front which collides with the point, or null if not found. | |
*/ | |
public function frontCollidePoint(x:Number, y:Number):Entity | |
{ | |
var e:Entity, | |
i:int = 0; |