Comments (2)
I was wondering, and this is a bit out there as an idea, but, Collage
reminds me a lot of Processing.
For example, these two should be equivalent:
Elm:
move (200,200) <|
filled red <|
circle 20
Processingjs:
noStroke();
fill(255,0,0);
ellipse(200,200,20,20);
In theory we could have unit tests (or properties) where we fabricate equivalent calls and send them to two different canvases (of equal dimensions of course). We then compare the pixels. If we assume that processing is super stable and not buggy (which it probably is after all the time it's been around), then any inconsistencies we get must come from the collage API (assuming the tests are correct).
Since this is visual, we can always see the output of the two as an image (and optionally a diff of the two outputs) and see if the output from the tests make sense.
(I think in processing the origin is at the top-left and +y is down, so obviously we would have to correct for that)
from core.
Sorry this did not get attention til now! The Graphics.*
modules now live in evancz/elm-graphics
so I am trying to get stuff migrated over there.
Not sure if this makes sense. I expect to be focusing on <canvas>
for professional users and "friendly graphics" for learning as separate use cases. Progress will be made when those start happening.
from core.
Related Issues (20)
- Perf optimization: check length/size of lists/sets/dicts/arrays in _Utils_eq HOT 2
- List.repeat fails (in an ugly way) when given Infinity HOT 2
- NOTE: The compiler provides the real implementation. HOT 3
- Dict/Set.fold*ByOrder proposal HOT 1
- Order of port declarations in resulting JS influences behaviour HOT 1
- Task.andAlwaysThen proposal HOT 10
- `Array` sorting HOT 2
- NaN compares as equal to zero in several cases involving literal 0 HOT 1
- List.map foldl-version HOT 2
- Support partial folds over `Dict` HOT 1
- String.lines "" returns [""] HOT 3
- _Platform_gatherEffects can throw runtime exception - Maximum call stack size exceeded HOT 3
- Bug in List.drop and List.take HOT 1
- Enhance documentation for `Dict.fromList` HOT 1
- Compilation error building elm/core 1.0.5 HOT 4
- Subscription bug in the latest core libraries HOT 1
- Child elements not added to <template> elements HOT 3
- Case sensitivity when sorting strings is difficult to deal with HOT 1
- Unused port call breaks subscriptions HOT 1
- Overflow issue when converting integers near maxint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.