[{"data":1,"prerenderedAt":142},["ShallowReactive",2],{"/dict/import-pcolors-rgb":3,"/dict/import-pcolors-rgb-surround":131},{"id":4,"title":5,"body":6,"description":98,"extension":99,"meta":100,"navigation":118,"path":127,"seo":128,"stem":129,"__hash__":130},"content/dict/import-pcolors-rgb.md","NetLogo Dictionary: import-pcolors-rgb",{"type":7,"value":8,"toc":87},"minimark",[9],[10,11,16,35,58,74,77],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","import-pcolors-rgb","region",[17,18,20],"h3",{"id":19},"import-pcolors-rgb40",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#import-pcolors-rgb","doc-noteref","Reference to import-pcolors-rgb","\nimport-pcolors-rgb\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n4.0\n",[36,37,41],"h4",{"id":38,"className":39},"import-pcolors-rgb-filename",[40],"section-heading",[21,42,46],{"className":43,"href":45},[44],"section-anchor","#import-pcolors-rgb-filename",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54],"p",{},"import-pcolors-rgb ",[55,56,57],"em",{},"filename",[51,59,60,61,73],{},"Reads an image file, scales it to the same dimensions as the patch\ngrid while maintaining the original aspect ratio of the image, and\ntransfers the resulting pixel colors to the patches. The image is\ncentered in the patch grid. Unlike ",[62,63,65],"primitive",{"displayText":64,"permalink":64},"import-pcolors",[21,66,64],{"href":67,"rel":68,"className":70,"dataDisplayText":64,"target":72,"title":64},"/dictionary#import-pcolors",[69],"noopener",[71],"netlogo-wiki-link","_self"," the exact colors in the\noriginal image are retained. The pcolor variable of all the patches\nwill be an RGB list rather than an (approximated) NetLogo color.",[51,75,76],{},"The following image file formats are supported: BMP, JPG, GIF, and\nPNG. If the image format supports transparency (alpha), then all\nfully transparent pixels will be ignored. (Partially transparent\npixels will be treated as opaque.)",[51,78,79,80,86],{},"Note: This primitive is not compatible with NetLogo Web. If you\nwish to import patch colors with the same code and the\nsame behavior in both NetLogo and NetLogo Web, see ",[21,81,85],{"href":82,"rel":83},"https://github.com/NetLogo/ImportA-Extension#readme",[84],"nofollow","import-a:pcolors-rgb",".",{"title":88,"searchDepth":89,"depth":90,"links":91},"",5,3,[92],{"id":19,"depth":90,"text":93,"children":94},"\nimport-pcolors-rgb\n\n4.0\n",[95],{"id":38,"depth":96,"text":97},4,"import-pcolors-rgb filename","Documentation for the import-pcolors-rgb primitive.","md",{"source":101,"metadataOutputPath":102,"projectConfig":103,"language":110,"inheritFrom":119,"output":118,"version":104,"layout":120,"dictionaryDisplayName":121,"dictionaryHomeDirectory":122,"indexFileURI":123,"currentItemId":14,"currentItemLabel":14,"primRoot":124,"icon":125,"assetsRoot":126},"autogen/dict/import-pcolors-rgb.md","content/dict/import-pcolors-rgb.metadata.yaml",{"version":104,"projectRoot":86,"scanRoot":105,"outputRoot":106,"defaults":107,"engine":113,"partials":114,"dedupeIdenticalDiskWrites":118},"7.0.4","autogen","content",{"inheritFrom":108,"language":110,"output":111,"extension":99,"title":112,"version":104},[109],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":115,"extensions":116},[86],[117,99],"mustache",true,[109],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/import-pcolors-rgb",{"title":5,"description":98},"dict/import-pcolors-rgb","zlHYZXlr1s4Eb_5_tOLO_GgFMmHu7IUNRbDG_A3pc4I",[132,137],{"title":133,"path":134,"stem":135,"description":136},"NetLogo Dictionary: import-pcolors","/dict/import-pcolors","dict/import-pcolors","Documentation for the import-pcolors primitive.",{"title":138,"path":139,"stem":140,"description":141},"NetLogo Dictionary: import-world","/dict/import-world","dict/import-world","Documentation for the import-world primitive.",1777657815543]