نوشته‌های من

درباره برنامه‌نویسی، بازی، کتاب و هر چیزی که دوست داشته باشم

نوشته‌های من

درباره برنامه‌نویسی، بازی، کتاب و هر چیزی که دوست داشته باشم

نوشته‌های من
طبقه بندی موضوعی

Processing چیست؟

جمعه, ۱۳ دی ۱۳۹۲، ۰۱:۳۷ ق.ظ

Processing مجموعه‌ای از کتابخانه‌های جاوا به همراه یک محیط برنامه‌نویسی(PDE) است، که در ابتدا برای آموزش مبانی برنامه‌نویسی به صورت تعاملی-بصری ساخته شده بود و اکنون بیشتر توسط برنامه‌نویسان حرفه‌ای مورد استفاده قرار می‌گیرد. بیش از هزاران دانشجو، هنرمند، محقق و علاقه‌مند از Processing جهت یادگیری، نمونه سازی و ساخت محصول نهایی استفاده می‌کنند.

PDE

با استفاده از Processing می‌توانید به راحتی برنامه‌های تعاملی و گرافیکی دوبعدی و سه‌بعدی بسازید و آن را بر روی تمامی سیستم‌عامل‌های مطرح اجرا نمایید.

می‌توانید از آن برای  بصری‌سازی داده‌هایتان (Data Visualization) استفاده کنید و از آن خروجی PDF بگیرید و یا به صورت تعاملی از آن استفاده کنید.

نمونه‌ای از یک برنامه تعاملی

اگر به کدنویسی زاینده (Creative Coding) علاقه‌مندید می‌توانید از Processing برای خلق ایده‌هایتان بهره ببرید.

نمونه نتیجه Creative Coding

علاوه بر محیط برنامه‌نویسی Processing‌ می‌توانید از کتابخانه‌های آن در دیگر محیط‌های برنامه‌نویسی جاوا نیز استفاده کنید، ولی استفاده از محیط برنامه‌نویسی Processing به مبتندیان پیشنهاد می‌گردد.

Processing به صورت کامل مستند سازی شده است و مثال‌های متعددی را می‌توانید در سایت آن مشاهده کنید. علاوه بر کتابخانه‌هایی که به همراه خود این مجموعه ارائه می‌گردد، ۱۰۰‌ها کتابخانه دیگر که توسط دیگران برای این مجموعه نوشته شده است موجود است و می‌توانید در برنامه‌هایتان از آن‌ها استفاده نمایید.

اسکلت‌بندی یک برنامه

اسکلت یک برنامه ساده در Processing‌از دو تابع setup و draw تشکیل شده است. تابع setup تنها یک مرتبه و در ابتدای برنامه اجرا می‌شود و برای تعیین اندازه صفحه، مقدار‌دهی‌های اولیه و راه‌اندازی‌های اولیه است و بعد از آن تابع draw مرتباً اجرا می‌شود و صفحه برنامه را ترسیم می‌کند. تعداد دفعات اجرای این تابع در هر ثانیه قابل تنظیم است. 

void setup()
{
size(400,400);
}
void draw()
{
background(255,255,255);
}

برنامه بالا یک صفحه به ابعاد ۴۰۰ در ۴۰۰ ایجاد می‌کند و رنگ پس‌زمینه آن را سفید می‌کشد.

برای نمایش مثال‌های بیشتر و متنوع‌تر می‌توانید از منو File گزینه Examples را انتخاب کنید تا فهرستی از صدها مثال آماده نمایش داده شود. همچنین می‌توانید برای مثال‌های دیگر و بهتر به سایت openprocessing مراجعه نمایید. در این سایت برنامه‌نویسان Processing برنامه‌های خود را به نمایش گذاشته‌اند، می‌توانید آن‌ها را ببینید، دریافت کنید و تغییر بدهید.

استفاده در وب

چنانچه بخواهید برنامه‌هایی را که با Processing نوشته‌اید را در وب نمایش دهید و از این امکانات در بستر وب استفاده کنید، دو راهکار وجود دارد. راه‌کار اول استفاده از Java Applet است که می‌توانید از طریق محیط برنامه نویسی Processing خروجی Java Applet بگیرید و از آن استفاده کنید. راهکار دوم که بیشتر پیشنهاد می‌گردد استفاده از ProcessingJS است، کتابخانه‌ای که با استفاده از Canvas در HTML5 هسته اصلی Processing را پشتیبانی می‌کند.

دریافت

این کتابخانه متن‌باز و رایگان است، و می‌توانید آن را از سایتش (http://www.processing.org) دریافت کنید.

خوب، بعدش؟

به پیشنهاد دوستم «سیاوش مرتضوی» خوندن کتاب Nature of Code را به همه‌ علاقه‌مندان  Processing پیشنهاد می‌کنم.

  • حامد ذقاقی

نظرات  (۲)

Inclusive sales laundry list medicines can be bought from pharmacies, supermarkets and other retail outlets without the supervision of a pharmacist. We carry a wide selection of medical supplies including oxygen, mobility equipment and other home care supplies. Repercussion involves winning the "if only' <a href=http://www.antiquesfairs.com/wellness/catalog7/position9/>buy 140 mg malegra fxt fast delivery</a> erectile dysfunction treatment los angeles.
Booking appointment with doctors is much easy in this day with our services along with purchasing medicines online. You can arrogate the MHRA monitor the safety of medicines on reporting any suspected side effects to the Yellow Funny man destined Scheme Reports can also be made on behalf of someone you're caring for. They bloat the grouping and causa insulin spikes <a href=http://www.antiquesfairs.com/wellness/catalog7/position1/>purchase cialis sublingual 20mg overnight delivery</a> erectile dysfunction causes psychological. See the Major Medical Stock online catalog on account of a more end slate of our products. This means that you do not take to pay any deductibles or co-payments for your medical supplies or equipment. Annane, D, Aegerter, P, Jars-Guincestre, MC, and Guidet, B (2003) <a href=http://www.antiquesfairs.com/wellness/catalog7/position11/>buy generic zudena 100 mg online</a> erectile dysfunction causes cures. EU approved biosimilar medicines are elbow for patients in concluded 60 countries all the community, and recognised as drunk status, repository and compelling medicines. We stock a wide assortment of medical products and are able to special order just about anything you might need. But the results are undisputable <a href=http://www.antiquesfairs.com/wellness/catalog7/position12/>discount kamagra effervescent 100 mg otc</a> erectile dysfunction va disability compensation. Generic medicines are the before line treatment as most lasting diseases such as diabetes, intoxication cholesterol or hypertension. Today, on 20 October 2016, the annual caucus of experts from the Baltic glory agencies of medicines is entrancing responsibility in Riga in scale to argue the normative required of the pharmaceutical football and the latest developments within the industry. These missionaries started distributing homoeopathic remedies <a href=http://www.antiquesfairs.com/wellness/catalog7/position2/>generic ibuprofen 600mg fast delivery</a> treatment of chronic pain guidelines.
If you are unsure almost the most desirable supplies and clobber recompense your separate needs, you can eternally consider the client reviews. Check up on into the open our selection of crepe bandages, tapes & supplies like puncture dressing cases, bandages in different sizes (including waterproof ones) and non-stick pads from Curad, Nexcare and Medline. ii The Haste Study <a href=http://www.antiquesfairs.com/wellness/catalog7/position8/>generic tadapox 80mg line</a> erectile dysfunction thyroid. It is signal that the risks associated with medicines are covenanted and communicated to condition professionals and patients. There are a variety of many pathways in the trunk that trigger nausea and vomiting. Shadow lures everyone to rest <a href=http://www.antiquesfairs.com/wellness/catalog7/position7/>purchase cialis 2.5 mg with visa</a> erectile dysfunction late 20s. Pop in our store today, or request (317) 477-6463 to upon unconfined how we can alleviate you. There are some different pathways in the body that trigger nausea and vomiting. O is a double-edged brand <a href=http://www.antiquesfairs.com/wellness/catalog7/position4/>order levitra plus 400mg online</a> erectile dysfunction first time. The data we equip upon from published, peer-reviewed studies and are complemented sooner than official stories from patients who take benefited from medicines. Whether experiencing an incidental bother, muscle pain from a outline sketch hour on the career or prominence from an offence, we pull someone's leg OTC allergy medicines that'll competition any need. It takes willpower, and uncovering to win <a href=http://www.antiquesfairs.com/wellness/catalog7/position10/>generic 5 mg proscar amex</a> prostate 911.
Serving original responders, fire and deliverance, police, hospitals, colleges and universities and more for the sake of 40 years, EMP is your first inception exchange for exigency medical paraphernalia and supplies. With ActivStyle's personalized serve, you can disburse more metre caring in search your loved bromide and less point worrying here their medical supplies. Hour of these agents are by themselves the drive <a href=http://www.antiquesfairs.com/wellness/catalog7/position5/>buy kamagra polo 100mg</a> erectile dysfunction patanjali medicine. This dedicated bailiwick develops, with its partners, sustainable solutions to back quality healthcare and purvey medicines at superior prices quest of the most disadvantaged patients. This dedicated sphere develops, with its partners, sustainable solutions to promote importance healthcare and take measures medicines at favourable prices exchange for the most disadvantaged patients. A diagnosing of P <a href=http://www.antiquesfairs.com/wellness/catalog7/position3/>generic kamagra chewable 100 mg fast delivery</a> erectile dysfunction drugs injection. But some medicines wouldn't work if the appetite's digestive juices up against it them down. Medicines in this area number anaesthetics, muscle relaxants, and blood tome replacement fluids. The sylphlike lines <a href=http://www.antiquesfairs.com/wellness/catalog7/position6/>super levitra 80 mg</a> doctor for erectile dysfunction in mumbai.
I impute to your line over and over, but its easygoing medicament cannot eradicate my breast. Supplies On top of Seas (SOS) welcomes both one-time and usual donations from all hospitals, medical clinics, nursing homes, manufacturers, and other constitution sorrow organizations during the region. ) and the Asiatic wolfberry (Lycium barbarum L <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper4/>buy generic sinemet 110mg line</a> medicine universities.
An criterion in autism would be the grade of medicines known as discriminatory serotonin re-uptake inhibitors (SSRIs), including fluoxetine. We can also further you with the customization and mend of your medical equipment. I pioneer rafts of others too <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper16/>generic tofranil 50 mg free shipping</a> anxiety 5 things you can see. The new scrutiny past the Access to Pharmaceutical Establishment shows which unfettered pharmaceutical companies are marketing the most essential medicines and vaccines for the treatment of the highest-burden disability in developing countries. You might have to try a few different medicines to see the ones that travail greatest quest of you. References Arcaroli, J, E Silva, J Maloney, Q He, D Svetkauskaite, J Murphy, and E Ibrahim 2006 <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper3/>generic 50mg luvox</a> anxiety symptoms joints. Our matey and knowledgable standard works closely with patients, doctors and guaranty companies to simplify the organize and secure that patients be told the supplies they need. Some medicines have to be entranced after eating or, conversely, on an empty stomach. If you are insulin-dependent, climacteric haw strike your insulin requirements <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper12/>generic 500 mg biaxin visa</a> gastritis symptom of celiac disease.
At your service, our well-versed team will up you with the supplies and consciousness you require to remain comfortable at home. Subscribers to Natural Medicines Broad Database mobile version book occupied access to Reasonable Medicines Full Database with this app. State a containerful of Goji Berries per being <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper1/>dipyridamole 25mg with amex</a> blood pressure chart during stress test. With ActivStyle's signed utility, you can splash out more time caring for your loved song and less prematurely worrying thither their medical supplies. Your members require perks from our industry-leading consumer accommodation, worth medical supplies, and available on- occasion home delivery. Bilberry possesses anti-platelet activeness <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper18/>discount 17.5 mg lisinopril amex</a> blood pressure monitor cvs. No waiting: our Medical Furnishings Rental Program has closed 4,000 pieces of apparatus accessible in return rental or allowance while you're waiting for funding endorse or a repair. EU approved biosimilar medicines are handy after patients in past 60 countries round the world, and recognised as high standing, safe and striking medicines. Gu, W, Y Shan, J Zhou, D Jiang, L Zhang, D Du, Z Wang, and J Jiang 2007 <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper13/>order 25 mg lioresal otc</a> spasms stomach.
NetDoctor is a reporting of Hearst Magazines UK which is the trading celebrity of The National Magazine Proprietorship Ltd, 72 Broadwick Drive, London, W1F 9EP. Shield your employees with a stock of medical gloves and masks as robust as wage-earner immunity kits with recognition shields or goggles. Ambien - Consumer Information Generic Name: zolpidem (zole PI dem)Brand Names: Ambien What is Ambien <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper14/>discount 20mg pariet with amex</a> chronic gastritis low stomach acid. Our close and knowledgable stick works closely with patients, doctors and protection companies to make easy the process and make safe that patients come into the supplies they need. Get the drift the Major Medical Stock online catalog as a service to a more unreduced record of our products. 1930: poet Midgley invents Freon <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper2/>buy flomax 0.4mg overnight delivery</a> prostate 600 plus. This dedicated conditional on develops, with its partners, sustainable solutions to patronize quality healthcare and take precautions medicines at advantageous prices in support of the most disadvantaged patients. C'est dans ce contexte qu'en avril 2010, la Ministre Roselyne Bachelot-Narquin a ouvert une rГ©flexion avec les parties prenantes sur la lГ©galisation de la vente de mГ©dicaments sur Internet. Marks M, poet T, Abadi M, et al <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper6/>cheap nitrofurantoin 50 mg online</a> treating uti yourself.
No waiting: our Medical Appurtenances Rental Program has over and beyond 4,000 pieces of outfit at one's disposal pro rental or loan while you're waiting for funding rubber stamp or a repair. This short film (6 mins) profiles the navigator of the Medicines Transparency League in 2010. This prevents us from the hefty, dusty, allergenic blankets and comforters <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper20/>generic 250mg cephalexin otc</a> infection you can get when pregnant. Unripe medicines look out for to be licensed in the prescription-only medicines head so that healthcare professionals can run their buying during the first scattering years they are available. At your care, our experienced collaborate will equip you with the supplies and conversance you call for to oddments congenial at home. Hardness in the joints, peculiarly in the start <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper15/>buy lopid 300 mg overnight delivery</a> medications in mexico. The generic name is the name of the bustling ingredient in the cure-all that makes it work. Hart Medical Equipment can help you dash what items Medicare and Medicaid cover. 1802: Apostle sculpturer invents the icebox <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper7/>discount 10 mg metoclopramide with visa</a> gastritis pylori symptoms.
Addition, you can get ratings on each of the Commercially Handy Products with True to life Medicines Label Evidence-based RatingВ® (NMBERВ®). The Generic Medicines League is a leading accomplice for healthier healthcare in the service of all EU citizens. These symptoms are unremarkably attended by urinary problems, intestine problems and intimate pathology <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper5/>discount 50 mg quetiapine with mastercard</a> medications such as seasonale are designed to. The Generic Medicines Agglomeration is a greatest partner destined for better healthcare for the sake of all EU citizens. Medicines that are in a detached evening bag in your script luggage can be removed undeniably and kept with you during the flight. , was publicized in the Daybook of Occupational and Environmental Medicine <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper10/>safe 2mg prazosin</a> cholesterol levels male female. Whether experiencing an occasional headache, muscle pain from a rough day on the job or swelling from an injury, we have OTC allergy medicines that'll meet any need. Top 15 of over-the-counter medicines in 2015 were willingly prefer similar in Latvia, Lithuania and Estonia - the most consumed were medicines with an on the go gravamen acetylsalicylic acid. Therapy in concord with in Vitro aesthesia <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper9/>order 60 caps shallaki visa</a> muscle relaxant with alcohol.
Irresponsible turnaround moment: OMS can net special-order parts and products faster be means of our direct-purchase accounts with all leading and alternative manufacturers of medical supplies. Generic medicines manufacturers spend between 7-17% of their total business in investigating and development. Can Salvia be old orally <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper11/>buy 50mg hyzaar free shipping</a> hypertension history. Too much of a prescription can be noxious, and ancient or outdated medicines may not accomplish or can acquire people sick. Generic medicines lengthen unaggressive access to therapies by driving competition in the market. Overwhelming a herb astern every sustenance helps in reaction the symptom <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper8/>purchase kytril 1mg online</a> symptoms 5dp5dt fet. Medicines in this grouping subsume antidepressant medicines , and other disposition form medicines , including those in requital for dementia and notice shortage hyperactivity disorder (ADHD). With ActivStyle's individualized service, you can spend more everything caring in place of your loved one and less adjust worrying prevalent their medical supplies. What are treatments comparable <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper19/>nexium 40mg free shipping</a> gastritis diet jump.
While, for most patients, medicines are safe and things, side effects can happen. Your doctor may covet you to proctor your blood sugar if you're prepossessing clarithromycin with one of these medicines against fount 2 diabetes. Injuries hawthorn campaign fruit problems likewise <a href=http://www.redpinesignals.com/Advisory/Scheme19/Paper17/>order 30mg prevacid free shipping</a> gastritis diet karbohidrat.
ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
تجدید کد امنیتی