Activities/TurtleNutrition: Difference between revisions
| (5 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
== What is Turtle Nutrition == | == What is Turtle Nutrition == | ||
Turtle Nutrition is | Turtle Nutrition is a programmatic way to explore the nutritional content of the foods we eat. | ||
Turtle Nutrition is a fork of [[Activities/Turtle Art]] that includes blocks to extract the nutritional content of food. These data can be used to plot charts, create formulas, calculate the nutritional content of recipes, and maintain a log of food eaten. | Turtle Nutrition is a fork of [[Activities/Turtle Art]] that includes blocks to extract the nutritional content of food. These data can be used to plot charts, create formulas, calculate the nutritional content of recipes, and maintain a log of food eaten. | ||
| Line 34: | Line 34: | ||
;digest meal: reset the nutritional content eaten to zero | ;digest meal: reset the nutritional content eaten to zero | ||
;get name: returns the name of a food item as a string | ;get name: returns the name of a food item as a string | ||
;add food: (in versions 202.1+) the 'add food' block lets the user add new foods to the food palette | |||
[[File:TurtleNutrition-food-toolbar.png|800px]] | [[File:TurtleNutrition-food-toolbar.png|800px]] | ||
| Line 60: | Line 61: | ||
# Create SVG images for the foods similar to [https://github.com/walterbender/turtleart/tree/nutrition/plugins/food/images] | # Create SVG images for the foods similar to [https://github.com/walterbender/turtleart/tree/nutrition/plugins/food/images] | ||
# Edit food.py [https://github.com/walterbender/turtleart/blob/nutrition/plugins/food/food.py#L211] to add your new foods to the food palette | # Edit food.py [https://github.com/walterbender/turtleart/blob/nutrition/plugins/food/food.py#L211] to add your new foods to the food palette | ||
[[File:AddFood.png]] | |||
'''Note''': As of version 202.1, there is an "add food" block that will replace Steps 4 and 5 above. | |||
Feel free to ask for help if needed. | Feel free to ask for help if needed. | ||
| Line 66: | Line 71: | ||
Please file bugs at [https://bugs.sugarlabs.org/newticket?component=TurtleArt]. | Please file bugs at [https://bugs.sugarlabs.org/newticket?component=TurtleArt]. | ||
To list all open tickets of Turtle | To list all open tickets of Turtle Nutrition, see [https://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&component=TurtleArt]. | ||
== Credits == | == Credits == | ||
* Walter Bender wrote and maintains the code. | * Walter Bender wrote and maintains the code. | ||
* Brian Silverman is the first author of Turtle Art. | * Brian Silverman is the first author of Turtle Art. | ||