Sir/Mam,
I am Ankur Mazumder, 2nd year in IIT Bhubaneshwar. I have a fair amount of knowledge in JavaScript including ES6 and have some experience with p5.js. I would like to work on GIF project. I have some ideas on the implementation of GIF, which instead of manually uploading images into the third party website might be done automatically. I am also interested in FES and p5.js sound library. But, as much as I could surmise from it is, those 2 topics are new implementations and unfortunately, I could not find any issues on these topics. I would like to know if there are any currently open issues regarding these topics for me to solve.
Awaiting your reply and permission to work on it.
Thank you.
2 Likes
Hi @ankur_54 , thanks for your interest. Here are some links with issues and discussion related to your interests:
p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...
# p5.js Friendly Error System (FES)
## Overview
The Friendly Error System (FES) is a system designed to help new programmers with common user errors as they get started learning. It catches common beginning errors and provides clear language and links to help a user resolve the error. FES is only applied to functions that are ones a user might encounter when they are just starting. An exception is made for particular common gotchas such as trying to load files without running a server, or calling loadImage() with a URL, etc.
The goal is to create accessible error messages to supplement the often cryptic console errors. For example, Javascript has no support for type checking as default making errors in parameter entry was harder to detect for new Javascript developers.
Messages generated by FES are written in natural language, linked to documentation, and assume a beginner level. The errors are triggered in multiple files through out p5.js, but most of the work and error writing happens in `src/core/error_helpers.js`.
By default, FES is enabled for `p5.js`, whereas completely disabled in `p5.min.js`. It is possible to disable FES by setting `p5.disableFriendlyErrors = true;`.
So far FES is able to detect and print messages for two kinds of errors: (1) `validateParameters()` checks a function’s input parameters based on inline documentations and (2) `friendlyFileLoadError()` catches file loading errors. These two kinds of error checking have been integrated into an existing (selected set of) p5 functions, but developers can add them to more p5 functions, or their own libraries, by calling `p5._validateParameters()`.
FES provides a generalized error message generation system that developers may use by calling `p5._friendlyError()`.
### `core/error_helpers/friendlyFileLoadError()`:
* This function generates and displays friendly error messages if a file fails to load correctly. It also checks if the size of a file might be too large to load and produces a warning.
* This can be called through : `p5._friendlyFileLoadError(ERROR_TYPE, FILE_PATH)`.
* file loading error example:
This file has been truncated. show original
1 Like
Hi @ankur_54
I’ve just started work on a p5 library which supports GIF exports and would be happy to collaborate: